Permalink
Browse files

Simple fix on JCryptPasswordSimple class

  • Loading branch information...
1 parent 0798265 commit 6ae69387e5d139ffaaea65d6f5dcf8908190b830 diego varussa committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/crypt/password/simple.php
View
2 libraries/joomla/crypt/password/simple.php
@@ -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);
}

0 comments on commit 6ae6938

Please sign in to comment.