mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Merge pull request #70 from diolektor/69-fix_crypt
#69 Fixed crypt notice
This commit is contained in:
commit
1316bed86a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue