From e7898c43260d17c8441eb67ccff431f55c894ba5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 16 Oct 2017 19:50:44 +0200 Subject: [PATCH] removed obsolete mt_srand --- lam/lib/config.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/lam/lib/config.inc b/lam/lib/config.inc index 7448f7aa..06863229 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -1090,7 +1090,6 @@ class LAMConfig { */ public function set_Passwd($value) { if (is_string($value)) { - mt_srand((microtime() * 1000000)); $rand = getRandomNumber(); $salt0 = substr(pack("h*", md5($rand)), 0, 8); $salt = substr(pack("H*", sha1($salt0 . $value)), 0, 4); @@ -2410,7 +2409,6 @@ class LAMCfgMain { * @param String $password new password */ public function setPassword($password) { - mt_srand((microtime() * 1000000)); $rand = getRandomNumber(); $salt0 = substr(pack("h*", md5($rand)), 0, 8); $salt = substr(pack("H*", sha1($salt0 . $password)), 0, 4);