From d107221a7b3112fcf1b261341766e2216ad3b764 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 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); }