Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Simple fix on JCryptPasswordSimple class #1598

Merged
merged 1 commit into from Oct 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -99,7 +99,7 @@ protected function getSalt($length)
{
$bytes = ceil($length * 6 / 8);
- $randomData = str_replace('+', '.', base64_encode(JCrypt::getRandomBytes($bytes)));
+ $randomData = str_replace('+', '.', base64_encode(JCrypt::genRandomBytes($bytes)));
return substr($randomData, 0, $length);
}