34 #define getpid _getpid
53 seed = (
unsigned int)time(NULL) + (
unsigned int)getpid() - 0xbadd;
60 _lwrandom_seed[2] = ((((int64_t)seed + 0xdefeb) << 5) % 2147483398) + 1;
103 *s1 = 40014 * (*s1 - k * 53668) - k * 12211;
108 *s2 = 40692 * (*s2 - k * 52774) - k * 3791;
116 value = (double)(z) / 2147483563.0;
void _lwrandom_set_seeds(int32_t s1, int32_t s2)
static int32_t _lwrandom_seed[3]
void lwrandom_set_seed(int32_t seed)
int32_t _lwrandom_get_seed(size_t idx)
static unsigned char _lwrandom_seed_set
double lwrandom_uniform(void)