CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2016/05/23 14:47:49
Modified files: sys/ufs/ffs : ffs_alloc.c Log message: Use arc4random_uniform() instead of arc4random() to avoid modulus bias. This eliminates the idiom 'arc4random() % X' (where X + 1 is not a power of two) from base. Part of a patch from Matthew Martin from end of last year. ok tedu@ (a long time ago), natano@