Searched refs:seed (Results 1 – 5 of 5) sorted by relevance
46 rand_r(unsigned int *seed) in rand_r() argument48 _DIAGASSERT(seed != NULL); in rand_r()50 return ((*seed = *seed * 1103515245 + 12345) & RAND_MAX); in rand_r()
29 srand48(long seed) in __weak_alias()32 __rand48_seed[1] = (unsigned short) seed; in __weak_alias()33 __rand48_seed[2] = (unsigned short) ((unsigned long)seed >> 16); in __weak_alias()
27 void srand(unsigned int seed) { in srand() argument28 return srandom(seed); in srand()
53 const unsigned short seed[3] = { 0x330e, 0xabcd, 0x1234 }; in TEST() local55 memcpy(xsubi, seed, sizeof(seed)); in TEST()60 memcpy(xsubi, seed, sizeof(seed)); in TEST()63 memcpy(xsubi, seed, sizeof(seed)); in TEST()
338 unsigned int seed, /* seed for R.N.G. */ in initstate() argument380 srandom_unlocked(seed); in initstate()