1
Fork 0
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:
Jean-Baptiste Boric 2021-05-14 17:16:06 +02:00 committed by Andreas Kling
parent ad7cd05fc1
commit 069bf988ed
3 changed files with 36 additions and 16 deletions

View file

@ -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;