summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/dev/impact.c
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2020-06-05 23:16:24 +0000
committernaddy <naddy@openbsd.org>2020-06-05 23:16:24 +0000
commit8274f7016bafdaa9664a02c123f04607750edbe0 (patch)
tree230984932631401d9854d958f72c83b0ce7405ea /sys/arch/sgi/dev/impact.c
parentAllow userland access to the virtual counter. (diff)
downloadwireguard-openbsd-8274f7016bafdaa9664a02c123f04607750edbe0.tar.xz
wireguard-openbsd-8274f7016bafdaa9664a02c123f04607750edbe0.zip
Implement cpu_rnd_messybits() as a read of the virtual counter xored
with a bit-reversed copy of itself. There is progressively less entropy in the higher bits of a counter than in the lower bits, so bit-reverse one half in order to extract maximal entropy. style fixes and ok kettenis@
Diffstat (limited to 'sys/arch/sgi/dev/impact.c')
0 files changed, 0 insertions, 0 deletions