diff options
Diffstat (limited to '')
-rw-r--r-- | usr/klibc/nrand48.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/klibc/nrand48.c b/usr/klibc/nrand48.c new file mode 100644 index 0000000..cb3532b --- /dev/null +++ b/usr/klibc/nrand48.c @@ -0,0 +1,11 @@ +/* + * nrand48.c + */ + +#include <stdlib.h> +#include <stdint.h> + +long nrand48(unsigned short xsubi[3]) +{ + return (long)((uint32_t) jrand48(xsubi) >> 1); +} |