Skip to content

Commit

Permalink
#69 Fixed crypt notice
Browse files Browse the repository at this point in the history
  • Loading branch information
diolektor committed Feb 13, 2016
1 parent 9df0c8d commit ee3534b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.php
Expand Up @@ -373,7 +373,7 @@ function make_rand_str ($len = 10)
$str = '';
while (strlen($str) < $len)
{
$str .= str_shuffle(preg_replace('#[^0-9a-zA-Z]#', '', crypt(uniqid(mt_rand(), true))));
$str .= str_shuffle(preg_replace('#[^0-9a-zA-Z]#', '', password_hash(uniqid(mt_rand(), true), PASSWORD_BCRYPT)));
}
return substr($str, 0, $len);
}
Expand Down

0 comments on commit ee3534b

Please sign in to comment.