php 7 future

This commit is contained in:
Vasily Komrakov 2017-01-11 21:30:24 +03:00
commit efcd7ae71f
34 changed files with 649 additions and 654 deletions

View file

@ -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));
}
}
}
}