mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
AK: Introduce get_random_uniform()
This is arc4random_uniform(), but inside AK.
This commit is contained in:
parent
ad7cd05fc1
commit
069bf988ed
3 changed files with 36 additions and 16 deletions
|
@ -41,7 +41,10 @@ inline T get_random()
|
|||
return t;
|
||||
}
|
||||
|
||||
u32 get_random_uniform(u32 max_bounds);
|
||||
|
||||
}
|
||||
|
||||
using AK::fill_with_random;
|
||||
using AK::get_random;
|
||||
using AK::get_random_uniform;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue