On Thu, Nov 17, 2022 at 09:29:04PM +0100, Jason A. Donenfeld wrote: > This is a simple mechanical transformation done by: > > @@ > expression E; > @@ > - prandom_u32_max > + get_random_u32_below > (E) > > Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > Acked-by: Darrick J. Wong <djwong@xxxxxxxxxx> # for xfs > Reviewed-by: SeongJae Park <sj@xxxxxxxxxx> # for damon > Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> # for infiniband > Reviewed-by: Russell King (Oracle) <rmk+kernel@xxxxxxxxxxxxxxx> # for arm > Acked-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> # for mmc > Signed-off-by: Jason A. Donenfeld <Jason@xxxxxxxxx> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx> -- Kees Cook