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 long, string given in %s on line %d
2 Test srand() function : usage variations - different data types as $seed argument5 /* Prototype : void srand ([ int $seed ] )10 echo "*** Testing srand() : usage variations ***\n";78 // loop through each element of $inputs to check the behaviour of srand()82 var_dump(srand($input));89 *** Testing srand() : usage variations ***141 Warning: srand() expects parameter 1 to be long, string given in %s on line %d146 Warning: srand() expects parameter 1 to be long, string given in %s on line %d151 Warning: srand() expects parameter 1 to be long, array given in %s on line %d156 Warning: srand() expects parameter 1 to be long, string 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 long, array given in %s on line %d
51 srand((unsigned int) seed); in php_srand()230 PHP_FUNCTION(srand) in PHP_FUNCTION() argument
48 PHP_FUNCTION(srand);
2847 PHP_FE(srand, arginfo_srand)
13 srand(time() + ((microtime(true) * 1000000) % 1000000));
3 srand((double)microtime()*1000000);
1104 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()
Completed in 32 milliseconds