Page MenuHomeFreeBSD

linuxkpi: Add prandom_u32_max
ClosedPublic

Authored by manu on Fri, May 22, 5:20 PM.

Details

Summary

This is just a wrapper around arc4random_uniform
Needed by DRM v5.3

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

manu created this revision.Fri, May 22, 5:20 PM
manu requested review of this revision.Fri, May 22, 5:20 PM
hselasky accepted this revision.Fri, May 22, 8:45 PM
This revision is now accepted and ready to land.Fri, May 22, 8:45 PM
cem accepted this revision.Fri, May 22, 9:07 PM
cem added inline comments.
sys/compat/linuxkpi/common/include/linux/random.h
68 ↗(On Diff #72125)

style(9): return (arc4random_uniform(max));

manu updated this revision to Diff 72157.Sat, May 23, 12:10 PM
This revision now requires review to proceed.Sat, May 23, 12:10 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sat, May 23, 5:52 PM
Closed by commit rS361419: linuxkpi: Add prandom_u32_max (authored by manu). · Explain Why
This revision was automatically updated to reflect the committed changes.