From d27fb92874f0b37bd46467d5274e39b6a99f4825 Mon Sep 17 00:00:00 2001 From: Amo Chohan Date: Mon, 16 Feb 2015 10:37:23 +0000 Subject: [PATCH] Make generateSalt public method Also added a default value of 128 to the byte_size param --- src/ExpressionEngineHasher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExpressionEngineHasher.php b/src/ExpressionEngineHasher.php index 6726daf..7ccb612 100644 --- a/src/ExpressionEngineHasher.php +++ b/src/ExpressionEngineHasher.php @@ -96,7 +96,7 @@ private function guardAgainstMd5Collisions($value) * @param $byte_size * @return string */ - private function generateSalt($byte_size) + public function generateSalt($byte_size = 128) { $salt = ''; for ($i = 0; $i < $byte_size; $i++)