Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add some debug to the harden-rand tests, just in case™
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Oct 13, 2017
1 parent dc64bf4 commit 4d2b28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tests/harden_mt_rand.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $c = mt_rand(0,100)."\n";
$d = mt_rand(0,100)."\n";

if ($a == $c && $b == $d)
echo 'lose';
echo "a:$a, b:$b, c:$c, d:$d\n";
else
echo 'win';
?>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/harden_rand.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $d = rand(0,100)."\n";
rand(100,0)."\n";

if ($a == $c && $b == $d)
echo 'fail';
echo "a:$a, b:$b, c:$c, d:$d\n";
else
echo 'win';
?>
Expand Down

0 comments on commit 4d2b28a

Please sign in to comment.