Home
last modified time | relevance | path

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

/PHP-7.0/ext/standard/
H A Drand.c41 PHPAPI void php_srand(zend_long seed) in php_srand() argument
47 srandom((unsigned int) seed); in php_srand()
49 srand48(seed); in php_srand()
51 srand((unsigned int) seed); in php_srand()
164 *s++ = seed & 0xffffffffU; in php_mt_initialize()
232 zend_long seed = 0; in PHP_FUNCTION() local
238 seed = GENERATE_SEED(); in PHP_FUNCTION()
240 php_srand(seed); in PHP_FUNCTION()
248 zend_long seed = 0; in PHP_FUNCTION() local
254 seed = GENERATE_SEED(); in PHP_FUNCTION()
[all …]
H A Dphp_rand.h56 PHPAPI void php_srand(zend_long seed);
58 PHPAPI void php_mt_srand(php_uint32 seed);
H A Dbasic_functions.c1891 ZEND_ARG_INFO(0, seed)
1895 ZEND_ARG_INFO(0, seed)
/PHP-7.0/ext/gmp/tests/
H A Dgmp_random_seed-32bit.phpt105 $seed = gmp_init(1);
106 $seed <<= 512;
109 var_dump(gmp_random_seed($seed * -1));
125 var_dump(gmp_random_seed($seed));
H A Dgmp_random_seed.phpt105 $seed = gmp_init(1);
106 $seed <<= 512;
109 var_dump(gmp_random_seed($seed * -1));
125 var_dump(gmp_random_seed($seed));
/PHP-7.0/ext/standard/tests/math/
H A Dsrand_basic.phpt5 /* Prototype : void srand ([ int $seed ] )
H A Dsrand_error.phpt5 /* Prototype : void srand ([ int $seed ] )
H A Dmt_srand_variation1.phpt2 Test mt_srand() function : usage variations - different data types as $seed argument
7 /* Prototype : void mt_srand ([ int $seed ] )
H A Dsrand_variation1.phpt2 Test srand() function : usage variations - different data types as $seed argument
7 /* Prototype : void srand ([ int $seed ] )
/PHP-7.0/main/
H A Dphp_reentrancy.h114 PHPAPI int php_rand_r(unsigned int *seed);
/PHP-7.0/ext/gmp/
H A Dgmp.c108 ZEND_ARG_INFO(0, seed)
1790 zval *seed; in ZEND_FUNCTION() local
1794 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &seed) == FAILURE) { in ZEND_FUNCTION()
1800 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) { in ZEND_FUNCTION()
1801 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed)); in ZEND_FUNCTION()
1804 FETCH_GMP_ZVAL(gmpnum_seed, seed, temp_a); in ZEND_FUNCTION()

Completed in 34 milliseconds