aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-04-04 00:11:00 +0200
committerMarvin Borner2021-04-04 00:11:00 +0200
commit7a64bdbbcf14023370b90b22de73c2f61a6f84ac (patch)
tree7f26778ddcd9f7e213f70e60e04c1805c4f2572f /libs/libc/inc
parent9127d8e4d09207d5c9d98024ca6610310a7273ad (diff)
Implemented basic user program ASLR
Diffstat (limited to 'libs/libc/inc')
-rw-r--r--libs/libc/inc/random.h4
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);