mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
#69 Fixed crypt notice
This commit is contained in:
parent
efcd7ae71f
commit
d107221a7b
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,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), 'salt')));
|
||||
$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