On Thu 06-10-22 07:25:06, Jason A. Donenfeld wrote: > Rather than incurring a division or requesting too many random bytes for > the given range, use the prandom_u32_max() function, which only takes > the minimum required bytes from the RNG and avoids divisions. > > Reviewed-by: Kees Cook <[email protected]> > Reviewed-by: KP Singh <[email protected]> > Reviewed-by: Christoph Böhmwalder <[email protected]> > Signed-off-by: Jason A. Donenfeld <[email protected]>
Feel free to add: Reviewed-by: Jan Kara <[email protected]> for the ext2, ext4, and lib/sbitmap.c bits. Honza -- Jan Kara <[email protected]> SUSE Labs, CR
