Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Update StringUtil.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Feb 1, 2016
1 parent 05a0f4d commit 216b738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/StringUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function generateRandomBytes($size)
} elseif (function_exists('openssl_random_pseudo_bytes')) {
return openssl_random_pseudo_bytes($size);
} elseif (function_exists('mcrypt_create_iv')) {
return mcrypt_create_iv($length);
return mcrypt_create_iv($size);
}
throw new \RuntimeException('Unable to create random bytes.');
}
Expand Down

0 comments on commit 216b738

Please sign in to comment.