Searched refs:random_int (Results 1 – 17 of 17) sorted by relevance
/php-src/ext/random/tests/01_functions/ |
H A D | random_int.phpt | 2 Test normal operation of random_int() 6 var_dump(is_int(random_int(10, 100))); 8 $x = random_int(10, 100); 11 var_dump(random_int(-1000, -1) < 0); 12 var_dump(random_int(-1, PHP_INT_MAX) >= -1); 13 var_dump(is_int(random_int(PHP_INT_MIN, PHP_INT_MAX))); 15 var_dump(random_int(42,42));
|
H A D | random_int_error.phpt | 2 Test error operation of random_int() 8 $randomInt = random_int(); 14 $randomInt = random_int(42); 20 $randomInt = random_int(42,0); 27 random_int() expects exactly 2 arguments, 0 given 28 random_int() expects exactly 2 arguments, 1 given 29 random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max)
|
H A D | reflection.phpt | 2 Bug #74708 Wrong reflection on random_bytes and random_int 9 $rf = new ReflectionFunction('random_int');
|
/php-src/ext/sodium/tests/ |
H A D | crypto_aead.phpt | 15 $msg = random_bytes(random_int(1, 1000)); 18 $ad = random_bytes(random_int(1, 1000)); 38 $msg = random_bytes(random_int(1, 1000)); 41 $ad = random_bytes(random_int(1, 1000)); 67 $msg = random_bytes(random_int(1, 1000)); 70 $ad = random_bytes(random_int(1, 1000)); 94 $msg = random_bytes(random_int(1, 1000)); 96 $ad = random_bytes(random_int(1, 1000)); 120 $msg = random_bytes(random_int(1, 1000)); 122 $ad = random_bytes(random_int(1, 1000)); [all …]
|
H A D | crypto_secretstream.phpt | 13 $msg1 = random_bytes(random_int(1, 1000)); 14 $msg2 = random_bytes(random_int(1, 1000)); 16 $ad = random_bytes(random_int(1, 1000));
|
H A D | crypto_hex.phpt | 7 $bin = random_bytes(random_int(1, 1000));
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh15658.phpt | 10 echo match (random_int(1, 2)) {
|
/php-src/Zend/tests/ |
H A D | bug81652.phpt | 10 $this->a = true ? @random_int(0, 100) : false;
|
/php-src/Zend/tests/attributes/deprecated/ |
H A D | message_004.phpt | 6 define('MESSAGE', 'value-' . (random_int(1, 2) == 1 ? 'a' : 'b'));
|
/php-src/Zend/tests/attributes/deprecated/class_constants/ |
H A D | value_unknown_at_compile_time_001.phpt | 6 define('SUFFIX', random_int(1, 2) == 1 ? 'a' : 'b');
|
/php-src/ext/dom/tests/ |
H A D | gh12002.phpt | 10 return str_repeat($x, random_int(1, 1));
|
/php-src/ext/random/tests/02_engine/ |
H A D | pcgoneseq128xslrr64_seed.phpt | 9 $engine = new PcgOneseq128XslRr64(random_int(PHP_INT_MIN, PHP_INT_MAX));
|
H A D | xoshiro256starstar_seed.phpt | 9 $engine = new Xoshiro256StarStar(random_int(PHP_INT_MIN, PHP_INT_MAX));
|
/php-src/ext/random/ |
H A D | random.stub.php | 38 function random_int(int $min, int $max): int {} function
|
H A D | random_arginfo.h | 133 ZEND_FUNCTION(random_int); 166 ZEND_FE(random_int, arginfo_random_int)
|
H A D | random.c | 614 PHP_FUNCTION(random_int) argument
|
/php-src/ext/dom/tests/modern/html/parser/ |
H A D | Element_innerHTML.phpt | 23 $str = str_repeat("my valid string", random_int(1, 1));
|
Completed in 30 milliseconds