mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
erm, unique_id() should return a result
git-svn-id: file:///svn/phpbb/trunk@9266 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6bfa84bb74
commit
5866ee9101
1 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ class phpbb_security extends phpbb_plugin_support
|
||||||
return substr($val, 4, 16);
|
return substr($val, 4, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$val = phpbb::$config['rand_seed'] . microtime();
|
$val = phpbb::$config['rand_seed'] . microtime();
|
||||||
$val = md5($val);
|
$val = md5($val);
|
||||||
phpbb::$config['rand_seed'] = md5(phpbb::$config['rand_seed'] . $val . $extra);
|
phpbb::$config['rand_seed'] = md5(phpbb::$config['rand_seed'] . $val . $extra);
|
||||||
|
@ -90,7 +91,7 @@ class phpbb_security extends phpbb_plugin_support
|
||||||
$this->dss_seeded = true;
|
$this->dss_seeded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = substr($val, 4, 16);
|
return substr($val, 4, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue