From ee3534bebf1191ec00614e79ef24e33b534e3956 Mon Sep 17 00:00:00 2001 From: Vasily Komrakov Date: Sat, 13 Feb 2016 19:51:18 +0300 Subject: [PATCH] #69 Fixed crypt notice --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }