From 216b7380c882c95f3a8bd502d436fd681306315b Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Mon, 1 Feb 2016 11:53:43 +0100 Subject: [PATCH] Update StringUtil.php --- src/Util/StringUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/StringUtil.php b/src/Util/StringUtil.php index 884bc40c..9b8325cf 100644 --- a/src/Util/StringUtil.php +++ b/src/Util/StringUtil.php @@ -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.'); }