Home
last modified time | relevance | path

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

/PHP-5.4/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 long, string given in %s on line %d
H A Dsrand_variation1.phpt2 Test srand() function : usage variations - different data types as $seed argument
5 /* 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 %d
146 Warning: srand() expects parameter 1 to be long, string given in %s on line %d
151 Warning: srand() expects parameter 1 to be long, array given in %s on line %d
156 Warning: srand() expects parameter 1 to be long, string given in %s on line %d
[all …]
/PHP-5.4/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 long, array given in %s on line %d
/PHP-5.4/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.h48 PHP_FUNCTION(srand);
H A Dbasic_functions.c2847 PHP_FE(srand, arginfo_srand)
/PHP-5.4/ext/openssl/tests/
H A D011.phpt13 srand(time() + ((microtime(true) * 1000000) % 1000000));
/PHP-5.4/ext/interbase/tests/
H A Dinterbase.inc3 srand((double)microtime()*1000000);
/PHP-5.4/sapi/litespeed/
H A Dlsapilib.c1104 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()

Completed in 32 milliseconds