diff --git a/common.php b/common.php index a24da130e..b1e961d7c 100644 --- a/common.php +++ b/common.php @@ -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); }