]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arc4random() returns 0 to (2**32)−1, use an alternative to initialize
authorkevlo <kevlo@FreeBSD.org>
Sun, 22 May 2016 14:31:20 +0000 (14:31 +0000)
committerkevlo <kevlo@FreeBSD.org>
Sun, 22 May 2016 14:31:20 +0000 (14:31 +0000)
commit1006f009c60ec54278ee4f0f4248226cd926a7f4
treed7b5dfdd2cbb4b469c324a201afd2e18512d9924
parentaf76274c5eaba8afc08bdf1d0ee9ba18dcd01bd9
arc4random() returns 0 to (2**32)−1, use an alternative to initialize
i_gen if it's zero rather than a divide by 2.

With inputs from  delphij, mckusick, rmacklem

Reviewed by: mckusick
sys/fs/ext2fs/ext2_alloc.c
sys/fs/ext2fs/ext2_vfsops.c
sys/ufs/ffs/ffs_alloc.c
sys/ufs/ffs/ffs_vfsops.c