Home
last modified time | relevance | path

Searched refs:random_int (Results 1 – 15 of 15) sorted by relevance

/PHP-8.2/ext/random/tests/01_functions/
H A Drandom_int.phpt2 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 Drandom_int_error.phpt2 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 Dreflection.phpt2 Bug #74708 Wrong reflection on random_bytes and random_int
9 $rf = new ReflectionFunction('random_int');
/PHP-8.2/ext/sodium/tests/
H A Dcrypto_aead.phpt13 $msg = random_bytes(random_int(1, 1000));
16 $ad = random_bytes(random_int(1, 1000));
36 $msg = random_bytes(random_int(1, 1000));
39 $ad = random_bytes(random_int(1, 1000));
65 $msg = random_bytes(random_int(1, 1000));
68 $ad = random_bytes(random_int(1, 1000));
92 $msg = random_bytes(random_int(1, 1000));
94 $ad = random_bytes(random_int(1, 1000));
H A Dcrypto_secretstream.phpt13 $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 Dcrypto_hex.phpt7 $bin = random_bytes(random_int(1, 1000));
/PHP-8.2/ext/opcache/tests/jit/
H A Dgh15658.phpt10 echo match (random_int(1, 2)) {
/PHP-8.2/Zend/tests/
H A Dbug81652.phpt10 $this->a = true ? @random_int(0, 100) : false;
/PHP-8.2/ext/dom/tests/
H A Dgh12002.phpt10 return str_repeat($x, random_int(1, 1));
/PHP-8.2/ext/random/
H A Drandom.stub.php36 function random_int(int $min, int $max): int {} function
H A Drandom_arginfo.h121 ZEND_FUNCTION(random_int);
152 ZEND_FE(random_int, arginfo_random_int)
H A Drandom.c800 PHP_FUNCTION(random_int) argument
/PHP-8.2/ext/random/tests/02_engine/
H A Dpcgoneseq128xslrr64_seed.phpt9 $engine = new PcgOneseq128XslRr64(random_int(PHP_INT_MIN, PHP_INT_MAX));
H A Dxoshiro256starstar_seed.phpt9 $engine = new Xoshiro256StarStar(random_int(PHP_INT_MIN, PHP_INT_MAX));
/PHP-8.2/
H A DUPGRADING233 . random_bytes() and random_int() now throw \Random\RandomException on CSPRNG failure.

Completed in 17 milliseconds