import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-math / srand_basic.php
blob6ca8393153bb0c206c94e7067fb0d85814aee212
1 <?php
2 /* Prototype : void srand ([ int $seed ] )
3 * Description: Seed the random number generator.
4 * Source code: ext/standard/rand.c
5 */
7 echo "*** Testing srand() : basic functionality ***\n";
9 // Should return NULL if given anything that it can convert to long
10 // This doesn't actually test what it does with the input :-\
11 var_dump(srand());
12 var_dump(srand(500));
13 var_dump(srand(500.1));
14 var_dump(srand("500"));
15 var_dump(srand("500E3"));
16 var_dump(srand(true));
17 var_dump(srand(false));
18 var_dump(srand(NULL));
20 ===Done===