diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/al/random.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/al/random.h b/include/al/random.h index f4da0ba..c862835 100644 --- a/include/al/random.h +++ b/include/al/random.h @@ -7,6 +7,8 @@ #include <time.h> #endif +#define AL_RAND_MAX RAND_MAX + static u16 _al_rand_value = 1; AL_UNUSED_FUNCTION_PUSH @@ -23,6 +25,11 @@ static u16 al_rand_u16(void) return _al_rand_value++; } +static s32 al_rand(void) +{ + return rand(); +} + AL_UNUSED_FUNCTION_POP #endif // _AL_RANDOM_H |