summaryrefslogtreecommitdiff
path: root/src/stdlib/rand.c
diff options
context:
space:
mode:
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 bd561736..459332ce 100644
--- a/src/stdlib/rand.c
+++ b/src/stdlib/rand.c
@@ -1,12 +1,11 @@
#include <stdlib.h>
#include "nonstd/internal.h"
+#include "_rand.h"
/** get a pseudo-random number **/
int rand(void)
{
- /* FIXME: forward dependency on POSIX.1c-1995 */
- extern int rand_r(unsigned int*);
- return rand_r(__libc(RAND));
+ return _rand(*(unsigned*)__libc(RAND));
}
/***