summaryrefslogtreecommitdiff
path: root/src/stdlib/srand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/srand.c')
-rw-r--r--src/stdlib/srand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/srand.c b/src/stdlib/srand.c
index 97ed2fec..af61570b 100644
--- a/src/stdlib/srand.c
+++ b/src/stdlib/srand.c
@@ -1,11 +1,11 @@
#include <stdlib.h>
-#include "nonstd/lib.h"
+#include "_stdlib.h"
/** seed the pseudo-random number generator **/
void srand(unsigned int seed)
{
- *((int*)__libc(RAND)) = seed;
+ __stdlib.rand = seed;
}
/***