removed obsolete mt_srand
This commit is contained in:
parent
66a1b43565
commit
e7898c4326
|
@ -1090,7 +1090,6 @@ class LAMConfig {
|
||||||
*/
|
*/
|
||||||
public function set_Passwd($value) {
|
public function set_Passwd($value) {
|
||||||
if (is_string($value)) {
|
if (is_string($value)) {
|
||||||
mt_srand((microtime() * 1000000));
|
|
||||||
$rand = getRandomNumber();
|
$rand = getRandomNumber();
|
||||||
$salt0 = substr(pack("h*", md5($rand)), 0, 8);
|
$salt0 = substr(pack("h*", md5($rand)), 0, 8);
|
||||||
$salt = substr(pack("H*", sha1($salt0 . $value)), 0, 4);
|
$salt = substr(pack("H*", sha1($salt0 . $value)), 0, 4);
|
||||||
|
@ -2410,7 +2409,6 @@ class LAMCfgMain {
|
||||||
* @param String $password new password
|
* @param String $password new password
|
||||||
*/
|
*/
|
||||||
public function setPassword($password) {
|
public function setPassword($password) {
|
||||||
mt_srand((microtime() * 1000000));
|
|
||||||
$rand = getRandomNumber();
|
$rand = getRandomNumber();
|
||||||
$salt0 = substr(pack("h*", md5($rand)), 0, 8);
|
$salt0 = substr(pack("h*", md5($rand)), 0, 8);
|
||||||
$salt = substr(pack("H*", sha1($salt0 . $password)), 0, 4);
|
$salt = substr(pack("H*", sha1($salt0 . $password)), 0, 4);
|
||||||
|
|
Loading…
Reference in New Issue