diff options
author | tb <tb@cvs.openbsd.org> | 2015-12-17 08:09:21 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2015-12-17 08:09:21 +0000 |
commit | 4acc8923abc902bd69178f7ab9e85c2d7a808a0e (patch) | |
tree | 4b861d52080747f11f0f541cc15909282dfc6d69 /sys/dev/pv/vmt.c | |
parent | 9f24dd6892ff8ca7096feac476c6cdf3a83d3304 (diff) |
Replace 'arc4random() % (2^k - 1)' by 'arc4random() & (2^k - 1)' to
avoid modulo bias. Part of a diff by Matthew Martin, reviewed by
deraadt@ and me.
ok deraadt@
Diffstat (limited to 'sys/dev/pv/vmt.c')
0 files changed, 0 insertions, 0 deletions