Searched refs:seed (Results 1 – 11 of 11) sorted by relevance
41 PHPAPI void php_srand(zend_long seed) in php_srand() argument47 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() local238 seed = GENERATE_SEED(); in PHP_FUNCTION()240 php_srand(seed); in PHP_FUNCTION()248 zend_long seed = 0; in PHP_FUNCTION() local254 seed = GENERATE_SEED(); in PHP_FUNCTION()[all …]
56 PHPAPI void php_srand(zend_long seed);58 PHPAPI void php_mt_srand(php_uint32 seed);
1891 ZEND_ARG_INFO(0, seed)1895 ZEND_ARG_INFO(0, seed)
105 $seed = gmp_init(1);106 $seed <<= 512;109 var_dump(gmp_random_seed($seed * -1));125 var_dump(gmp_random_seed($seed));
5 /* Prototype : void srand ([ int $seed ] )
2 Test mt_srand() function : usage variations - different data types as $seed argument7 /* Prototype : void mt_srand ([ int $seed ] )
2 Test srand() function : usage variations - different data types as $seed argument7 /* Prototype : void srand ([ int $seed ] )
114 PHPAPI int php_rand_r(unsigned int *seed);
108 ZEND_ARG_INFO(0, seed)1790 zval *seed; in ZEND_FUNCTION() local1794 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