Home
last modified time | relevance | path

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

/glibc-2.36/malloc/
Dtst-mallocstate.c146 rand_next (unsigned long long *seed) in rand_next() argument
149 *seed = *seed * 6364136223846793005ULL + 1442695040888963407ULL; in rand_next()
150 return *seed >> 32; in rand_next()
157 unsigned long long seed) in randomize_buffer() argument
160 buffer[i] = rand_next (&seed); in randomize_buffer()
179 unsigned int seed; member
191 size, index, alloc->seed); in check_allocation()
200 size, index, alloc->seed); in check_allocation()
204 randomize_buffer (expected, size, alloc->seed); in check_allocation()
208 index, size, alloc->seed); in check_allocation()
[all …]
Dtst-mallocfork3.c157 unsigned int seed = 1; in do_test() local
161 int slot = rand_r (&seed) % malloc_objects; in do_test()
162 size_t size = rand_r (&seed) % malloc_maximum_size; in do_test()
166 bool do_fork = (rand_r (&seed) % 7) == 0; in do_test()
Dtst-mallocfork2.c199 unsigned seed = 1; in do_test() local
203 int slot = rand_r (&seed) % malloc_objects; in do_test()
204 size_t size = rand_r (&seed) % malloc_maximum_size; in do_test()
208 bool do_fork = (rand_r (&seed) % 7) == 0; in do_test()
/glibc-2.36/string/
Dtest-string.h80 unsigned int seed; variable
110 if (fdr < 0 || read (fdr, &seed, sizeof (seed)) != sizeof (seed)) in cmdline_process_function()
111 seed = time (NULL); in cmdline_process_function()
119 seed = strtoul (optarg, NULL, 0); in cmdline_process_function()
213 printf ("Setting seed to 0x%x\n", seed); in test_init()
214 srandom (seed); in test_init()
/glibc-2.36/benchtests/
Dbench-string.h135 unsigned int seed; variable
164 if (fdr < 0 || read (fdr, &seed, sizeof (seed)) != sizeof (seed)) in cmdline_process_function()
165 seed = time (NULL); in cmdline_process_function()
173 seed = strtoul (optarg, NULL, 0); in cmdline_process_function()
305 printf ("Setting seed to 0x%x\n", seed); in test_init()
306 srandom (seed); in test_init()
/glibc-2.36/stdlib/
Dtst-random.c44 const unsigned int seed[3] = { 0x12344321U, 0xEE11DD22U, 0xFEDCBA98 }; variable
64 srandom ( seed[s] ); in do_test()
73 srandom (seed[s]); in do_test()
82 srandom (seed[0]); /* reseed with first seed */ in do_test()
86 oldstate[s] = initstate (seed[s], state[s], degree); in do_test()
Drandom_r.c161 __srandom_r (unsigned int seed, struct random_data *buf) in __srandom_r() argument
178 if (seed == 0) in __srandom_r()
179 seed = 1; in __srandom_r()
180 state[0] = seed; in __srandom_r()
185 word = seed; in __srandom_r()
230 __initstate_r (unsigned int seed, char *arg_state, size_t n, in weak_alias()
271 __srandom_r (seed, buf); in weak_alias()
Drand_r.c25 rand_r (unsigned int *seed) in rand_r() argument
27 unsigned int next = *seed; in rand_r()
44 *seed = next; in rand_r()
Drandom.c230 __initstate (unsigned int seed, char *arg_state, size_t n) in weak_alias()
239 ret = __initstate_r (seed, arg_state, n, &unsafe_state); in weak_alias()
/glibc-2.36/locale/programs/
Dsimple-hash.c263 next_prime (unsigned long int seed) in next_prime() argument
266 seed |= 1; in next_prime()
268 while (!is_prime (seed)) in next_prime()
269 seed += 2; in next_prime()
271 return seed; in next_prime()
Dsimple-hash.h50 extern unsigned long int next_prime (unsigned long int seed) __THROW;
/glibc-2.36/libio/
Dtst-ftell-partial-wide.c59 wchar_t seed = L'ご'; in do_test() local
68 wmemset (inputs[i], seed, STRING_SIZE - 1); in do_test()
/glibc-2.36/nss/
Dmakedb.c610 next_prime (size_t seed) in next_prime() argument
613 seed = (seed + 4) | 1; in next_prime()
615 while (!is_prime (seed)) in next_prime()
616 seed += 2; in next_prime()
618 return seed; in next_prime()
/glibc-2.36/iconv/
Diconvconfig.c928 next_prime (uint32_t seed) in next_prime() argument
931 seed |= 1; in next_prime()
933 while (!is_prime (seed)) in next_prime()
934 seed += 2; in next_prime()
936 return seed; in next_prime()
/glibc-2.36/manual/
Dmath.texi1410 @cindex seed (for random numbers)
1416 number generator works by remembering a @dfn{seed} value which it uses
1417 to compute the next random number and also to compute a new seed.
1421 to the next. This is because the initial seed is always the same. This
1425 different seed each time. For ordinary purposes, basing the seed on the
1430 by specifying the same initial seed value for the random number
1431 generator. There is no standard meaning for a particular seed value;
1432 the same seed, used in different C libraries or on different CPU types,
1479 @deftypefun void srand (unsigned int @var{seed})
1483 This function establishes @var{seed} as the seed for a new series of
[all …]
Dcrypt.texi240 and use their output to seed a CRNG.
/glibc-2.36/sysdeps/alpha/alphaev6/
Dmemcpy.S211 ldq_u $3, 0($17) # L : seed (rotating load) of 8 bytes
/glibc-2.36/ChangeLog.old/
DChangeLog.79808 * stdlib/random_r.c (__srandom_r): Don't use seed 0. Use 1 in this
10536 increase effect of seed.
DChangeLog.139002 * string/strfry.c: Add some more randomness to the seed.