zig/lib/libc/musl/src/prng/mrand48.c
Andrew Kelley 49d1a4c562 move lib dirs to lib subdir
also start prefering NtDll API. so far:
 * NtQueryInformationFile
 * NtClose

adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00

14 lines
207 B
C
Vendored

#include <stdlib.h>
#include <inttypes.h>
#include "rand48.h"
long jrand48(unsigned short s[3])
{
return (int32_t)(__rand48_step(s, __seed48+3) >> 16);
}
long mrand48(void)
{
return jrand48(__seed48);
}