diff --git a/common.php b/common.php index 494299ac8..76a8d97d7 100644 --- a/common.php +++ b/common.php @@ -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); }