Lines Matching refs:seed
123 static inline void mt19937_seed_state(php_random_status_state_mt19937 *state, uint64_t seed) in mt19937_seed_state() argument
131 state->state[0] = seed & 0xffffffffU; in mt19937_seed_state()
141 static void seed(php_random_status *status, uint64_t seed) in seed() function
143 mt19937_seed_state(status->state, seed); in seed()
228 seed,
238 zend_long seed = 0; in php_random_mt19937_seed_default() local
240 if (php_random_bytes_silent(&seed, sizeof(zend_long)) == FAILURE) { in php_random_mt19937_seed_default()
241 seed = GENERATE_SEED(); in php_random_mt19937_seed_default()
244 mt19937_seed_state(state, (uint64_t) seed); in php_random_mt19937_seed_default()
253 zend_long seed, mode = MT_RAND_MT19937; in PHP_METHOD() local
258 Z_PARAM_LONG_OR_NULL(seed, seed_is_null); in PHP_METHOD()
276 if (php_random_bytes_throw(&seed, sizeof(zend_long)) == FAILURE) { in PHP_METHOD()
282 engine->algo->seed(engine->status, seed); in PHP_METHOD()