diff options
Diffstat (limited to 'libs/libc/inc/random.h')
-rw-r--r-- | libs/libc/inc/random.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/inc/random.h b/libs/libc/inc/random.h index a82524c..6360625 100644 --- a/libs/libc/inc/random.h +++ b/libs/libc/inc/random.h @@ -5,9 +5,9 @@ #include <def.h> +#define rand_range(min, max) (rand() % ((max) + 1 - (min)) + (min)) + void srand(u32 seed); -u32 rdrand(void); -u32 rdseed(void); u32 rand(void); char *randstr(u32 size); |