Home
last modified time | relevance | path

Searched refs:srand (Results 1 – 10 of 10) sorted by relevance

/PHP-7.0/ext/standard/tests/math/
H A Dsrand_basic.phpt2 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 …]
H A Dsrand_error.phpt2 Test srand() function : error conditions - incorrect number of args
5 /* Prototype : void srand ([ int $seed ] )
11 * Pass incorrect number of arguments to srand() to test behaviour
14 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 %d
27 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d
H A Dsrand_variation1.phpt2 Test srand() function : usage variations - different data types as $seed argument
7 /* 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 %d
145 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d
150 Warning: srand() expects parameter 1 to be integer, string given in %s on line %d
155 Warning: srand() expects parameter 1 to be integer, array given in %s on line %d
[all …]
/PHP-7.0/ext/standard/tests/general_functions/
H A Drand.phpt16 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
/PHP-7.0/ext/standard/
H A Drand.c51 srand((unsigned int) seed); in php_srand()
230 PHP_FUNCTION(srand) in PHP_FUNCTION() argument
H A Dphp_math.h49 PHP_FUNCTION(srand);
H A Dbasic_functions.c2843 PHP_FE(srand, arginfo_srand)
/PHP-7.0/ext/openssl/tests/
H A Dopenssl_decrypt_basic.phpt13 srand(time() + ((microtime(true) * 1000000) % 1000000));
/PHP-7.0/ext/interbase/tests/
H A Dinterbase.inc3 srand((double)microtime()*1000000);
/PHP-7.0/sapi/litespeed/
H A Dlsapilib.c1156 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()

Completed in 31 milliseconds