impose barrier between thread pointer setup and use for static linking
[musl.git] / src / prng / mrand48.c
blobf4a56e61b2e65b51008b64f076a0bc14fbfeed9d
1 #include <stdlib.h>
2 #include <inttypes.h>
3 #include "rand48.h"
5 long jrand48(unsigned short s[3])
7 return (int32_t)(__rand48_step(s, __seed48+3) >> 16);
10 long mrand48(void)
12 return jrand48(__seed48);