xref: /aosp_15_r20/external/musl/src/prng/lrand48.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #include <stdlib.h>
2 #include <inttypes.h>
3 #include "rand48.h"
4 
nrand48(unsigned short s[3])5 long nrand48(unsigned short s[3])
6 {
7 	return __rand48_step(s, __seed48+3) >> 17;
8 }
9 
lrand48(void)10 long lrand48(void)
11 {
12 	return nrand48(__seed48);
13 }
14