mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
#69 Fixed crypt notice
This commit is contained in:
parent
9df0c8d9d3
commit
ee3534bebf
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ function make_rand_str ($len = 10)
|
||||||
$str = '';
|
$str = '';
|
||||||
while (strlen($str) < $len)
|
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);
|
return substr($str, 0, $len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue