merge phpass class into crypto class

This commit is contained in:
Marcin Łojewski
2018-06-30 17:07:25 +02:00
parent ef9db7444a
commit 74bb55534d
3 changed files with 92 additions and 244 deletions

View File

@@ -56,7 +56,7 @@ final class Utils
{
$string = "";
for ($idx = 0; $idx != $length; ++$idx) {
$string .= $alphabet[mt_rand(0, strlen($alphabet) - 1)];
$string .= $alphabet[random_int(0, strlen($alphabet) - 1)];
}
return $string;
}