diff options
Diffstat (limited to 'src/tests/harden_rand.phpt')
| -rw-r--r-- | src/tests/harden_rand.phpt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/tests/harden_rand.phpt b/src/tests/harden_rand.phpt deleted file mode 100644 index 336f5a7..0000000 --- a/src/tests/harden_rand.phpt +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | --TEST-- | ||
| 2 | Harden rand | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/harden_rand.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | srand(0); | ||
| 10 | $a = rand(0,1000)."\n"; | ||
| 11 | $b = rand(0,1000)."\n"; | ||
| 12 | srand(0); | ||
| 13 | $c = rand(0,1000)."\n"; | ||
| 14 | $d = rand(0,1000)."\n"; | ||
| 15 | |||
| 16 | rand(100,0)."\n"; | ||
| 17 | |||
| 18 | if ($a == $c && $b == $d) | ||
| 19 | echo "a:$a, b:$b, c:$c, d:$d\n"; | ||
| 20 | else | ||
| 21 | echo 'win'; | ||
| 22 | ?> | ||
| 23 | --EXPECT-- | ||
| 24 | win | ||
