Home
last modified time | relevance | path

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

/PHP-8.0/ext/standard/
H A Dmt_rand.c95 static inline void php_mt_initialize(uint32_t seed, uint32_t *state) in php_mt_initialize() argument
106 *s++ = seed & 0xffffffffU; in php_mt_initialize()
144 PHPAPI void php_mt_srand(uint32_t seed) in php_mt_srand() argument
147 php_mt_initialize(seed, BG(state)); in php_mt_srand()
183 zend_long seed = 0; in PHP_FUNCTION() local
188 Z_PARAM_LONG(seed) in PHP_FUNCTION()
193 seed = GENERATE_SEED(); in PHP_FUNCTION()
203 php_mt_srand(seed); in PHP_FUNCTION()
H A Drand.c30 PHPAPI void php_srand(zend_long seed) in php_srand() argument
32 php_mt_srand(seed); in php_srand()
H A Dphp_mt_rand.h33 PHPAPI void php_mt_srand(uint32_t seed);
H A Dphp_rand.h69 PHPAPI void php_srand(zend_long seed);
H A Dbasic_functions.stub.php1172 function mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {} argument
1175 function srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {} argument
H A Dbasic_functions_arginfo.h1807 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, seed, IS_LONG, 0, "0")
/PHP-8.0/ext/gmp/tests/
H A Dgmp_random_seed.phpt81 $seed = gmp_init(1);
82 $seed <<= 512;
85 var_dump(gmp_random_seed($seed * -1));
97 var_dump(gmp_random_seed($seed));
175 gmp_random_seed(): Argument #1 ($seed) is not an integer string
/PHP-8.0/ext/sodium/tests/
H A Dcrypto_sign.phpt30 $seed = str_repeat('x', SODIUM_CRYPTO_SIGN_SEEDBYTES);
31 $alice_kp = sodium_crypto_sign_seed_keypair($seed);
38 "since they are derived from a fixed seed";
/PHP-8.0/ext/sodium/
H A Dlibsodium.stub.php45 function sodium_crypto_box_seed_keypair(string $seed): string {} argument
67 function sodium_crypto_kx_seed_keypair(string $seed): string {} argument
153 function sodium_crypto_sign_seed_keypair(string $seed): string {} argument
H A Dlibsodium.c778 unsigned char *seed; in PHP_FUNCTION() local
783 &seed, &seed_len) == FAILURE) { in PHP_FUNCTION()
796 seed) != 0) { in PHP_FUNCTION()
1098 unsigned char *seed; in PHP_FUNCTION() local
1103 &seed, &seed_len) == FAILURE) { in PHP_FUNCTION()
1116 seed) != 0) { in PHP_FUNCTION()
2453 unsigned char *seed; in PHP_FUNCTION() local
2458 &seed, &seed_len) == FAILURE) { in PHP_FUNCTION()
2472 seed, crypto_kx_SEEDBYTES, NULL, 0); in PHP_FUNCTION()
H A Dlibsodium_arginfo.h98 ZEND_ARG_TYPE_INFO(0, seed, IS_STRING, 0)
/PHP-8.0/ext/gd/libgd/
H A Dgd_filter.c36 s.seed = GD_SCATTER_SEED(); in gdImageScatter()
48 s.seed = GD_SCATTER_SEED(); in gdImageScatterColor()
67 (void)srand(scatter->seed); in gdImageScatterEx()
H A Dgd.h729 unsigned int seed; member
/PHP-8.0/ext/gmp/
H A Dgmp.c1731 zval *seed; in ZEND_FUNCTION() local
1734 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &seed) == FAILURE) { in ZEND_FUNCTION()
1740 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) { in ZEND_FUNCTION()
1741 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed)); in ZEND_FUNCTION()
1746 FETCH_GMP_ZVAL(gmpnum_seed, seed, temp_a, 1); in ZEND_FUNCTION()
H A Dgmp.stub.php80 function gmp_random_seed(GMP|int|string $seed): void {} argument
H A Dgmp_arginfo.h133 ZEND_ARG_OBJ_TYPE_MASK(0, seed, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
/PHP-8.0/sapi/fuzzer/
H A DREADME.md31 Some fuzzers have a seed corpus in `sapi/fuzzer/corpus`. You can use it as follows:
/PHP-8.0/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます9488 >36 lelong x \b, seed %#x
H A Dmagic9488 >36 lelong x \b, seed %#x

Completed in 246 milliseconds