/php-src/ext/openssl/tests/ |
H A D | openssl_spki_new_basic.phpt | 36 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), 37 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, 38 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), 39 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
|
H A D | openssl_spki_export_basic.phpt | 43 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), 44 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, 45 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), 46 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
|
H A D | openssl_spki_verify_basic.phpt | 39 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), 40 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, 41 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), 42 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
|
H A D | openssl_spki_export_challenge_basic.phpt | 44 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), 45 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, 46 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), 47 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
|
/php-src/ext/random/tests/01_functions/ |
H A D | bug46587.phpt | 2 Bug #46587 (mt_rand() does not check that max is greater than min). 6 var_dump(mt_rand(3,8)); 8 var_dump(mt_rand(8,3)); 17 mt_rand(): Argument #2 ($max) must be greater than or equal to argument #1 ($min)
|
H A D | mt_srand_unknown_mode.phpt | 7 var_dump(mt_rand()); 10 var_dump(mt_rand()); 13 var_dump(mt_rand()); 16 var_dump(mt_rand());
|
H A D | mt_rand_value.phpt | 2 Test mt_rand() output 9 echo mt_rand().PHP_EOL; 15 $x ^= mt_rand(); 23 echo mt_rand().PHP_EOL; 29 $x ^= mt_rand();
|
H A D | bug75514.phpt | 2 Bug #75514 mt_rand returns value outside [$min,$max] 6 var_dump(mt_rand(0,999999999), mt_rand(0,999));
|
H A D | mt_rand_basic.phpt | 2 Test mt_rand() - basic function test mt_rand() 9 $res = mt_rand(); 39 $res = mt_rand($min[$x], $max[$x]); 54 mt_rand() tests with default min and max value (i.e 0 thru 2147483647) 57 mt_rand() tests with defined min and max value
|
H A D | bug75170.phpt | 2 Bug #75170: mt_rand() bias on 64-bit machines 14 $halves[(mt_rand(0, $max - 1) >> 1) & 1]++; 25 $halves[(int) (mt_rand(0, $max - 1) / ($max / 2))]++;
|
/php-src/ext/standard/tests/general_functions/ |
H A D | rand.phpt | 2 rand() and mt_rand() tests 6 var_dump(mt_rand()); 7 var_dump(mt_rand(-1,1)); 8 var_dump(mt_rand(0,3));
|
/php-src/ext/random/tests/03_randomizer/ |
H A D | compatibility_mt_rand.phpt | 2 Random: Randomizer: The Mt19937 engine is a drop-in replacement for mt_rand() 15 if ($randomizer->nextInt() !== mt_rand()) { 21 if ($randomizer->getInt(0, $i) !== mt_rand(0, $i)) { 32 if ($randomizer->nextInt() !== mt_rand()) { 38 if ($randomizer->getInt(0, $i) !== mt_rand(0, $i)) {
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionConstant_double_construct.phpt | 9 $r = new ReflectionConstant('C' . mt_rand(1, 1)); 12 $r->__construct('C' . mt_rand(2, 2));
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_pconnect.phpt | 29 $index = mt_rand(0, $num); 47 $index = mt_rand(0, $num); 49 if (mt_rand(0, 1) > 0) { 63 $index = mt_rand(0, $num);
|
H A D | mysqli_fetch_assoc_bit.phpt | 57 $num_loops = mt_rand(1, $max_loops); 60 $value += mt_rand(0, $rand_max); 62 $value = mt_rand(0, $max_value);
|
H A D | mysqli_stmt_get_result_bit.phpt | 65 $num_loops = mt_rand(1, $max_loops); 68 $value += mt_rand(0, $rand_max); 70 $value = mt_rand(0, $max_value);
|
H A D | mysqli_stmt_bind_result_format.phpt | 35 $col1 = mt_rand($min, $max); 228 $current_targets = mt_rand(-100000, 100000) / 10; 230 $trend = (mt_rand(0, 3) > 1) ? (mt_rand(-10000, 10000) / 100) : 'NULL'; 236 (mt_rand(0, 1) > 0) ? mt_rand(0, 1000) : 'NULL',
|
H A D | mysqli_stmt_bind_result_bit.phpt | 80 $num_loops = mt_rand(1, $max_loops); 83 $value += mt_rand(0, $rand_max); 85 $value = mt_rand(0, $max_value);
|
/php-src/ext/sodium/tests/ |
H A D | crypto_auth.phpt | 29 $badmsg[$i=mt_rand(0, 999)] = \chr( 31 1 << mt_rand(0, 7)
|
/php-src/sapi/phpdbg/tests/ |
H A D | bug73927.phpt | 37 $example[] = mt_rand(1, 10000); 45 return mt_rand(1, 1000);
|
/php-src/ext/xsl/tests/ |
H A D | getParameter.phpt | 17 $xslt->setParameter('', 'foo', str_repeat('"abcd"', mt_rand(2, 2) /* defeat SCCP */));
|
H A D | XSLTProcessor_callables.phpt | 35 $proc->registerPhpFunctions(str_repeat("var_dump", mt_rand(1, 1) /* defeat SCCP */));
|
/php-src/ext/zlib/tests/ |
H A D | bug75273.phpt | 15 $j = mt_rand(0, 255);
|
/php-src/ext/sysvmsg/tests/ |
H A D | 005.phpt | 14 $id = ftok(__FILE__, chr(mt_rand(0, 255))); } while (msg_queue_exists($id));
|
/php-src/ext/random/ |
H A D | random.stub.php | 28 function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {} function
|