summaryrefslogtreecommitdiff
path: root/src/stdlib/rand.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-11 19:51:32 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-11 19:51:32 -0400
commitd6127ae58ff3e823773a158a1e79d5999fa7f995 (patch)
treed530dfc9921d566919acf770c4b1ceb0a401a6bf /src/stdlib/rand.c
parent5d9519b799ac6fb1e2d5bdb3daaf123c1326c0f1 (diff)
move stdlib internals to _stdlib.h and struct __stdlib
Diffstat (limited to 'src/stdlib/rand.c')
-rw-r--r--src/stdlib/rand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stdlib/rand.c b/src/stdlib/rand.c
index f1a3e3e1..d8f3fcff 100644
--- a/src/stdlib/rand.c
+++ b/src/stdlib/rand.c
@@ -1,11 +1,10 @@
#include <stdlib.h>
-#include "nonstd/lib.h"
-#include "_rand.h"
+#include "_stdlib.h"
/** get a pseudo-random number **/
int rand(void)
{
- return _rand(*(unsigned*)__libc(RAND));
+ return (int)_rand(__stdlib.rand);
}
/***