linuxkpi: Add prandom_u32_max
This is just a wrapper around arc4random_uniform Needed by DRM v5.3 Sponsored-by: The FreeBSD Foundation Reviewed by: cem, hselasky Differential Revision: https://reviews.freebsd.org/D24961
This commit is contained in:
parent
353d02e927
commit
af300929f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361419
@ -62,4 +62,10 @@ get_random_long(void)
|
||||
return (val);
|
||||
}
|
||||
|
||||
static inline u32
|
||||
prandom_u32_max(u32 max)
|
||||
{
|
||||
return (arc4random_uniform(max));
|
||||
}
|
||||
|
||||
#endif /* _LINUX_RANDOM_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user