mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
Changing regeneration of the rand seed
git-svn-id: file:///svn/phpbb/trunk@6542 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -164,9 +164,10 @@ function unique_id($extra = 'c')
|
||||
$val = md5($val);
|
||||
$config['rand_seed'] = md5($config['rand_seed'] . $val . $extra);
|
||||
|
||||
if ($dss_seeded !== true)
|
||||
if ($dss_seeded !== true && ($config['rand_seed_last_update'] < time() - rand(1,10)))
|
||||
{
|
||||
set_config('rand_seed', $config['rand_seed'], true);
|
||||
set_config('rand_seed_last_update', time(), true);
|
||||
$dss_seeded = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user