Fixed Zend\Math\Rand::getString() to pass the parameter $strong to ::getBytes() #2764

Closed
wants to merge 1 commit into
from
@@ -153,7 +153,7 @@ public static function getString($length, $charlist = null, $strong = false)
// charlist is empty or not provided
if (empty($charlist)) {
$numBytes = ceil($length * 0.75);
- $bytes = static::getBytes($numBytes);
+ $bytes = static::getBytes($numBytes, $strong);
return substr(rtrim(base64_encode($bytes), '='), 0, $length);
}