Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Drand_r.c46 rand_r(unsigned int *seed) in rand_r() argument
48 _DIAGASSERT(seed != NULL); in rand_r()
50 return ((*seed = *seed * 1103515245 + 12345) & RAND_MAX); in rand_r()
Dsrand48.c29 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()
/bionic/libc/bionic/
Drand.cpp27 void srand(unsigned int seed) { in srand() argument
28 return srandom(seed); in srand()
/bionic/tests/
Dstdlib_test.cpp53 const unsigned short seed[3] = { 0x330e, 0xabcd, 0x1234 }; in TEST() local
55 memcpy(xsubi, seed, sizeof(seed)); in TEST()
60 memcpy(xsubi, seed, sizeof(seed)); in TEST()
63 memcpy(xsubi, seed, sizeof(seed)); in TEST()
/bionic/libc/upstream-netbsd/common/lib/libc/stdlib/
Drandom.c338 unsigned int seed, /* seed for R.N.G. */ in initstate() argument
380 srandom_unlocked(seed); in initstate()