Searched refs:srand (Results 1 – 10 of 10) sorted by relevance
2 Test srand() - basic function test for srand()5 /* Prototype : void srand ([ int $seed ] )14 var_dump(srand());15 var_dump(srand(500));16 var_dump(srand(500.1));17 var_dump(srand("500"));18 var_dump(srand("500E3"));19 var_dump(srand(true));20 var_dump(srand(false));21 var_dump(srand(NULL));[all …]
2 Test srand() function : error conditions - incorrect number of args5 /* Prototype : void srand ([ int $seed ] )11 * Pass incorrect number of arguments to srand() to test behaviour14 echo "*** Testing srand() : error conditions ***\n";16 var_dump(srand(500, true));17 var_dump(srand("fivehundred"));18 var_dump(srand("500ABC"));22 *** Testing srand() : error conditions ***24 Warning: srand() expects at most 1 parameter, 2 given in %s on line %d27 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d
2 Test srand() function : usage variations - different data types as $seed argument7 /* Prototype : void srand ([ int $seed ] )12 echo "*** Testing srand() : usage variations ***\n";80 // loop through each element of $inputs to check the behaviour of srand()84 var_dump(srand($input));91 *** Testing srand() : usage variations ***116 Warning: srand() expects parameter 1 to be integer, float given in %s on line %d145 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d150 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d155 Warning: srand() expects parameter 1 to be integer, array given in %s on line %d[all …]
16 var_dump(srand());17 var_dump(srand(-1));18 var_dump(srand(array()));48 Warning: srand() expects parameter 1 to be integer, array given in %s on line %d
51 srand((unsigned int) seed); in php_srand()230 PHP_FUNCTION(srand) in PHP_FUNCTION() argument
49 PHP_FUNCTION(srand);
2843 PHP_FE(srand, arginfo_srand)
13 srand(time() + ((microtime(true) * 1000000) % 1000000));
3 srand((double)microtime()*1000000);
1156 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()
Completed in 51 milliseconds