diff options
author | 2020-06-05 23:16:24 +0000 | |
---|---|---|
committer | 2020-06-05 23:16:24 +0000 | |
commit | 8274f7016bafdaa9664a02c123f04607750edbe0 (patch) | |
tree | 230984932631401d9854d958f72c83b0ce7405ea /sys/arch/sgi/dev/impact.c | |
parent | Allow userland access to the virtual counter. (diff) | |
download | wireguard-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