diff options
| author | jvoisin | 2017-10-13 12:37:30 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-13 12:37:30 +0200 |
| commit | 4d2b28ab41598fcd79ed173995ecbb275db079a0 (patch) | |
| tree | 45c3db4ea6f895ff38a1a080200f96d5d37ad1e8 /src | |
| parent | dc64bf47277377460ac0cef60458a57f7fbb6743 (diff) | |
Add some debug to the harden-rand tests, just in case™
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/harden_mt_rand.phpt | 2 | ||||
| -rw-r--r-- | src/tests/harden_rand.phpt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/harden_mt_rand.phpt b/src/tests/harden_mt_rand.phpt index 8887613..da1ac16 100644 --- a/src/tests/harden_mt_rand.phpt +++ b/src/tests/harden_mt_rand.phpt | |||
| @@ -14,7 +14,7 @@ $c = mt_rand(0,100)."\n"; | |||
| 14 | $d = mt_rand(0,100)."\n"; | 14 | $d = mt_rand(0,100)."\n"; |
| 15 | 15 | ||
| 16 | if ($a == $c && $b == $d) | 16 | if ($a == $c && $b == $d) |
| 17 | echo 'lose'; | 17 | echo "a:$a, b:$b, c:$c, d:$d\n"; |
| 18 | else | 18 | else |
| 19 | echo 'win'; | 19 | echo 'win'; |
| 20 | ?> | 20 | ?> |
diff --git a/src/tests/harden_rand.phpt b/src/tests/harden_rand.phpt index 391bccc..b5ee567 100644 --- a/src/tests/harden_rand.phpt +++ b/src/tests/harden_rand.phpt | |||
| @@ -16,7 +16,7 @@ $d = rand(0,100)."\n"; | |||
| 16 | rand(100,0)."\n"; | 16 | rand(100,0)."\n"; |
| 17 | 17 | ||
| 18 | if ($a == $c && $b == $d) | 18 | if ($a == $c && $b == $d) |
| 19 | echo 'fail'; | 19 | echo "a:$a, b:$b, c:$c, d:$d\n"; |
| 20 | else | 20 | else |
| 21 | echo 'win'; | 21 | echo 'win'; |
| 22 | ?> | 22 | ?> |
