/PHP-8.2/ext/random/tests/02_engine/ |
H A D | xoshiro256starstar_seed.phpt | 2 Random: Engine: Xoshiro256StarStar: The seed parameter must work as expected 8 echo "Random integer seed", PHP_EOL; 12 echo "Random string seed", PHP_EOL; 24 echo "Invalid string seed length", PHP_EOL; 32 echo "Null seed", PHP_EOL; 40 echo "Valid string seed", PHP_EOL; 53 Random integer seed 56 Random string seed 63 Invalid string seed length 67 Null seed [all …]
|
H A D | pcgoneseq128xslrr64_seed.phpt | 2 Random: Engine: PcgOneseq128XslRr64: The seed parameter must work as expected 8 echo "Random integer seed", PHP_EOL; 12 echo "Random string seed", PHP_EOL; 24 echo "Invalid string seed length", PHP_EOL; 32 echo "Valid string seed", PHP_EOL; 45 Random integer seed 48 Random string seed 52 Random\Engine\PcgOneseq128XslRr64::__construct(): Argument #1 ($seed) must be of type string|int|nu… 55 Invalid string seed length 56 Random\Engine\PcgOneseq128XslRr64::__construct(): Argument #1 ($seed) must be a 16 byte (128 bit) s… [all …]
|
H A D | mt19937_value.phpt | 2 Random: Engine: Mt19937: For a reference seed a fixed reference value must be generated
|
H A D | pcgoneseq128xslrr64_value.phpt | 2 Random: Engine: PcgOneseq128XslRr64: For a reference seed a fixed reference value must be generated
|
H A D | xoshiro256starstar_value.phpt | 2 Random: Engine: Xoshiro256StarStar: For a reference seed a fixed reference value must be generated
|
/PHP-8.2/ext/hash/tests/ |
H A D | murmurhash3_seed.phpt | 2 Hash: MurmurHash3 seed 6 $ctx = hash_init("murmur3f", options: ["seed" => 42]); 16 $h0 = hash("murmur3f", "Two hashes meet in a bar.", options: ["seed" => 42]); 19 $ctx = hash_init("murmur3c", options: ["seed" => 106]); 29 $h0 = hash("murmur3c", "Two hashes meet in a bar.", options: ["seed" => 106]); 32 $ctx = hash_init("murmur3a", options: ["seed" => 2345]); 42 $h0 = hash("murmur3a", "Two hashes meet in a bar.", options: ["seed" => 2345]);
|
H A D | xxhash_seed.phpt | 2 Hash: xxHash seed 8 $ctx = hash_init($a, options: ["seed" => 42]); 16 …$h0 = hash($a, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", options: ["seed" => 42]…
|
H A D | xxhash_secret.phpt | 19 $ctx = hash_init($a, options: ["seed" => 24, "secret" => $secret]); 50 string(67) "xxh3: Only one of seed or secret is to be passed for initialization" 54 string(69) "xxh128: Only one of seed or secret is to be passed for initialization"
|
H A D | hash_file_basic1.phpt | 46 echo "murmur3a: " . hash_file('murmur3a', $file, false, ['seed' => 1234]). "\n"; 48 echo "murmur3c: " . hash_file('murmur3c', $file, false, ['seed' => 1234]). "\n"; 50 echo "murmur3f: " . hash_file('murmur3f', $file, false, ['seed' => 1234]). "\n";
|
/PHP-8.2/ext/hash/ |
H A D | hash_murmur.c | 42 zval *seed = zend_hash_str_find_deref(args, "seed", sizeof("seed") - 1); in PHP_MURMUR3AInit() local 45 if (seed && IS_LONG == Z_TYPE_P(seed)) { in PHP_MURMUR3AInit() 46 ctx->h = (uint32_t)Z_LVAL_P(seed); in PHP_MURMUR3AInit() 99 zval *seed = zend_hash_str_find_deref(args, "seed", sizeof("seed") - 1); in PHP_MURMUR3CInit() local 102 if (seed && IS_LONG == Z_TYPE_P(seed)) { in PHP_MURMUR3CInit() 103 uint32_t _seed = (uint32_t)Z_LVAL_P(seed); in PHP_MURMUR3CInit() 173 zval *seed = zend_hash_str_find_deref(args, "seed", sizeof("seed") - 1); in PHP_MURMUR3FInit() local 176 if (seed && IS_LONG == Z_TYPE_P(seed)) { in PHP_MURMUR3FInit() 177 uint64_t _seed = (uint64_t)Z_LVAL_P(seed); in PHP_MURMUR3FInit()
|
H A D | hash_xxhash.c | 46 zval *seed = zend_hash_str_find_deref(args, "seed", sizeof("seed") - 1); in PHP_XXH32Init() local 49 if (seed && IS_LONG == Z_TYPE_P(seed)) { in PHP_XXH32Init() 50 XXH32_reset(&ctx->s, (XXH32_hash_t)Z_LVAL_P(seed)); in PHP_XXH32Init() 110 zval *seed = zend_hash_str_find_deref(args, "seed", sizeof("seed") - 1); in PHP_XXH64Init() local 113 if (seed && IS_LONG == Z_TYPE_P(seed)) { in PHP_XXH64Init() 114 XXH64_reset(&ctx->s, (XXH64_hash_t)Z_LVAL_P(seed)); in PHP_XXH64Init()
|
/PHP-8.2/ext/random/ |
H A D | engine_mt19937.c | 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() [all …]
|
H A D | engine_xoshiro256starstar.c | 29 static inline uint64_t splitmix64(uint64_t *seed) in splitmix64() argument 33 r = (*seed += 0x9e3779b97f4a7c15ULL); in splitmix64() 94 static void seed(php_random_status *status, uint64_t seed) in seed() function 98 s[0] = splitmix64(&seed); in seed() 99 s[1] = splitmix64(&seed); in seed() 100 s[2] = splitmix64(&seed); in seed() 101 s[3] = splitmix64(&seed); in seed() 155 seed, 244 engine->algo->seed(engine->status, (uint64_t) int_seed); in PHP_METHOD()
|
H A D | random.stub.php | 19 function mt_srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937): void {} argument 22 function srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937): void {} argument 46 public function __construct(int|null $seed = null, int $mode = MT_RAND_MT19937) {} argument 62 public function __construct(string|int|null $seed = null) {} argument 84 public function __construct(string|int|null $seed = null) {} argument
|
H A D | engine_combinedlcg.c | 35 static void seed(php_random_status *status, uint64_t seed) in seed() argument 39 s->state[0] = seed & 0xffffffffU; in seed() 40 s->state[1] = seed >> 32; in seed() 98 seed,
|
H A D | engine_pcgoneseq128xslrr64.c | 36 static inline void seed128(php_random_status *status, php_random_uint128_t seed) in seed128() argument 41 s->state = php_random_uint128_add(s->state, seed); in seed128() 45 static void seed(php_random_status *status, uint64_t seed) in seed() argument 47 seed128(status, php_random_uint128_constant(0ULL, seed)); in seed() 108 seed, 176 engine->algo->seed(engine->status, int_seed); in PHP_METHOD()
|
H A D | random.c | 428 PHPAPI void php_mt_srand(uint32_t seed) argument 431 php_random_algo_mt19937.seed(php_random_default_status(), (zend_long) seed); 472 PHPAPI void php_srand(zend_long seed) argument 474 php_mt_srand((uint32_t) seed); 681 zend_long seed = 0; local 688 Z_PARAM_LONG(seed) 703 php_random_algo_mt19937.seed(status, (uint64_t) seed);
|
H A D | php_random.h | 79 PHPAPI void php_mt_srand(uint32_t seed); 90 PHPAPI void php_srand(zend_long seed); 235 void (*seed)(php_random_status *status, uint64_t seed); member
|
/PHP-8.2/ext/standard/ |
H A D | uniqid.c | 75 double seed; in PHP_FUNCTION() local 77 seed = php_combined_lcg() * 10; in PHP_FUNCTION() 79 seed = ((double) bytes / UINT32_MAX) * 10.0; in PHP_FUNCTION() 81 uniqid = strpprintf(0, "%s%08x%05x%.8F", prefix, sec, usec, seed); in PHP_FUNCTION()
|
/PHP-8.2/ext/hash/xxhash/ |
H A D | xxhash.h | 1090 XXH64_hash_t seed; member 2094 xxh_u32 v3 = seed + 0; in XXH32_endian_align() 2121 XXH32_reset(&state, seed); in XXH32() 2164 state.v[2] = seed + 0; in XXH32_reset() 2580 state.v[2] = seed + 0; in XXH64_reset() 3474 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b() 4508 if (seed == 0) in XXH3_hashLong_64b_withSeed_internal() 4698 statePtr->seed = seed; in XXH3_reset_internal() 4732 if ((seed != statePtr->seed) || (statePtr->extSecret != NULL)) in XXH3_64bits_reset_withSeed() 5015 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b() [all …]
|
/PHP-8.2/ext/hash/murmur/ |
H A D | PMurHash128.h | 33 void PMurHash128x64(const void * key, const int len, uint32_t seed, void * out); 38 void PMurHash128x86(const void * key, const int len, uint32_t seed, void * out);
|
H A D | PMurHash128.c | 427 void PMurHash128x86(const void * key, const int len, uint32_t seed, void * out) in PMurHash128x86() argument 430 uint32_t h[4] = {seed, seed, seed, seed}; in PMurHash128x86() 634 void PMurHash128x64(const void * key, const int len, uint32_t seed, void * out) in PMurHash128x64() argument 637 uint64_t h[2] = {seed, seed}; in PMurHash128x64()
|
/PHP-8.2/ext/gmp/tests/ |
H A D | gmp_random_seed.phpt | 82 $seed = gmp_init(1); 83 $seed <<= 512; 86 var_dump(gmp_random_seed($seed * -1)); 98 var_dump(gmp_random_seed($seed)); 176 gmp_random_seed(): Argument #1 ($seed) is not an integer string
|
/PHP-8.2/ext/random/tests/01_functions/ |
H A D | gh-10292.phpt | 20 srand(): Argument #1 ($seed) must be passed explicitly, because the default value is not known 21 mt_srand(): Argument #1 ($seed) must be passed explicitly, because the default value is not known
|
/PHP-8.2/ext/sodium/tests/ |
H A D | crypto_sign.phpt | 30 $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";
|