Permalink
Browse files

Fix error with pass-by-reference

  • Loading branch information...
1 parent 93fac8b commit 0ab3dc471edbb63e6df3e36df82955c17c29176e @ircmaxell committed Jul 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/Vectors/Random/GeneratorTest.php
@@ -195,7 +195,8 @@ protected function doTestGenerate(\CryptLib\Random\Generator $generator, $times)
$on = 0;
for ($i = 0; $i < $times; $i++) {
$byte = $generator->generate(2);
- $byte = array_shift(unpack('n', $byte));
+ $byte = unpack('n', $byte);
+ $byte = array_shift($byte);
$xCoord = ($byte >> 8);
$yCoord = ($byte & 0xFF);
if ($xCoord < $yCoord) {

0 comments on commit 0ab3dc4

Please sign in to comment.