mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
php 7 future
This commit is contained in:
parent
e5fab725e1
commit
efcd7ae71f
34 changed files with 649 additions and 654 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))));
|
||||
$str .= str_shuffle(preg_replace('#[^0-9a-zA-Z]#', '', crypt(uniqid(mt_rand(), true), 'salt')));
|
||||
}
|
||||
return substr($str, 0, $len);
|
||||
}
|
||||
|
@ -507,4 +507,4 @@ else if (defined('IN_TRACKER'))
|
|||
dummy_exit(mt_rand(60, 2400));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue