Lines Matching defs:seed
50 * threads may be calling rand_r() using a pointer to the same seed.
59 rand_mt(uint_t *seed)
66 old_seed = *(volatile uint_t *)seed;
68 if (atomic_cas_uint(seed, old_seed, new_seed) == old_seed)
75 rand_r(uint_t *seed)
78 return (rand_mt(seed));
79 return (NEXT_VALUE(*seed = NEXT_SEED(*seed)));
83 srand(uint_t seed)
85 rand_seed = seed;