summaryrefslogtreecommitdiffstats
path: root/usr/klibc/nrand48.c
blob: cb3532bff023b141a038cdd48230750deaddfaf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
 * nrand48.c
 */

#include <stdlib.h>
#include <stdint.h>

long nrand48(unsigned short xsubi[3])
{
	return (long)((uint32_t) jrand48(xsubi) >> 1);
}