Searched defs:seed (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/gmp/
H A Dgmp.c108 ZEND_ARG_INFO(0, seed)
1776 /* {{{ proto GMP gmp_random_seed(mixed seed)
1780 zval *seed; local
1784 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &seed) == FAILURE) {
1790 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) {
1791 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed));
1794 FETCH_GMP_ZVAL(gmpnum_seed, seed, temp_a);
/PHP_TRUNK/ext/standard/
H A Drand.c41 PHPAPI void php_srand(zend_long seed) argument
44 BG(rand_seed) = (unsigned int) seed;
47 srandom((unsigned int) seed);
49 srand48(seed);
51 srand((unsigned int) seed);
153 static inline void php_mt_initialize(php_uint32 seed, php_uint32 *state) argument
155 /* Initialize generator state with seed
157 In previous versions, most significant bits (MSBs) of the seed affect
164 *s++ = seed & 0xffffffffU;
195 PHPAPI void php_mt_srand(php_uint32 seed) argument
232 zend_long seed = 0; local
248 zend_long seed = 0; local
[all...]

Completed in 6 milliseconds