Home
last modified time | relevance | path

Searched refs:mt_rand (Results 1 – 25 of 44) sorted by relevance

12

/PHP-8.0/ext/openssl/tests/
H A Dopenssl_spki_new_basic.phpt42 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
43 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
44 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
45 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
H A Dopenssl_spki_export_basic.phpt44 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));
H A Dopenssl_spki_verify_basic.phpt44 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));
H A Dopenssl_spki_export_challenge_basic.phpt47 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
48 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
49 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
50 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
/PHP-8.0/ext/standard/tests/general_functions/
H A Dbug46587.phpt2 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 Drand.phpt2 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-8.0/ext/standard/tests/math/
H A Dmt_rand_value.phpt2 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 Dbug75514.phpt2 Bug #75514 mt_rand returns value outside [$min,$max]
6 var_dump(mt_rand(0,999999999), mt_rand(0,999));
H A Dmt_rand_basic.phpt2 Test mt_rand() - basic function test mt_rand()
9 $res = mt_rand();
41 $res = mt_rand($min[$x], $max[$x]);
69 $res = mt_rand($min[$x], 100);
83 mt_rand() tests with default min and max value (i.e 0 thru 2147483647)
86 mt_rand() tests with defined min and max value
H A Dbug75170.phpt2 Bug #75170: mt_rand() bias on 64-bit machines
14 $halves[(mt_rand(0, $max - 1) >> 1) & 1]++;
25 $halves[mt_rand(0, $max - 1) / ($max / 2)]++;
/PHP-8.0/ext/mysqli/tests/
H A Dmysqli_pconnect.phpt28 $index = mt_rand(0, $num);
46 $index = mt_rand(0, $num);
48 if (mt_rand(0, 1) > 0) {
62 $index = mt_rand(0, $num);
H A Dmysqli_fetch_assoc_bit.phpt59 $num_loops = mt_rand(1, $max_loops);
62 $value += mt_rand(0, $rand_max);
64 $value = mt_rand(0, $max_value);
H A Dmysqli_stmt_get_result_bit.phpt65 $num_loops = mt_rand(1, $max_loops);
68 $value += mt_rand(0, $rand_max);
70 $value = mt_rand(0, $max_value);
H A Dmysqli_stmt_bind_result_format.phpt34 $col1 = mt_rand($min, $max);
227 $current_targets = mt_rand(-100000, 100000) / 10;
229 $trend = (mt_rand(0, 3) > 1) ? (mt_rand(-10000, 10000) / 100) : 'NULL';
235 (mt_rand(0, 1) > 0) ? mt_rand(0, 1000) : 'NULL',
H A Dmysqli_stmt_bind_result_bit.phpt79 $num_loops = mt_rand(1, $max_loops);
82 $value += mt_rand(0, $rand_max);
84 $value = mt_rand(0, $max_value);
H A Dmysqli_change_user_get_lock.phpt17 $lock = 'phptest_' . mt_rand(0, 100000);
77 $newlock = 'phptest_' . mt_rand(0, 100000);
H A Dmysqli_stmt_fetch_bit.phpt34 $value = mt_rand(0, $max_value);
/PHP-8.0/ext/sodium/tests/
H A Dcrypto_auth.phpt29 $badmsg[$i=mt_rand(0, 999)] = \chr(
31 1 << mt_rand(0, 7)
/PHP-8.0/sapi/phpdbg/tests/
H A Dbug73927.phpt37 $example[] = mt_rand(1, 10000);
45 return mt_rand(1, 1000);
/PHP-8.0/ext/standard/
H A Dphp_mt_rand.h38 PHP_MINIT_FUNCTION(mt_rand);
H A Dmt_rand.c304 PHP_FUNCTION(mt_rand) in PHP_FUNCTION() argument
342 PHP_MINIT_FUNCTION(mt_rand) in PHP_MINIT_FUNCTION() argument
H A Dconfig.w3232 net.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c soundex.c \
/PHP-8.0/ext/zlib/tests/
H A Dbug75273.phpt17 $j = mt_rand(0, 255);
/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_init_command.phpt20 $table = sprintf("test_%s", md5(mt_rand(0, PHP_INT_MAX)));
/PHP-8.0/ext/sysvmsg/tests/
H A D005.phpt14 $id = ftok(__FILE__, chr(mt_rand(0, 255))); } while (msg_queue_exists($id));

Completed in 28 milliseconds

12