mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
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
14 lines
207 B
C
Vendored
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);
|
|
}
|