aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-10-31 20:31:51 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-10-31 20:31:51 +0000
commit1128bf8788f274aefd6ac756d2c3bece2b4dcdd8 (patch)
tree1f44d38de963f94aa4f50b2177dea4538984fee5 /phpBB/includes
parentace934284a4f6e97d5de65b8f74f50561f6edcc3 (diff)
downloadforums-1128bf8788f274aefd6ac756d2c3bece2b4dcdd8.tar
forums-1128bf8788f274aefd6ac756d2c3bece2b4dcdd8.tar.gz
forums-1128bf8788f274aefd6ac756d2c3bece2b4dcdd8.tar.bz2
forums-1128bf8788f274aefd6ac756d2c3bece2b4dcdd8.tar.xz
forums-1128bf8788f274aefd6ac756d2c3bece2b4dcdd8.zip
Changing regeneration of the rand seed
git-svn-id: file:///svn/phpbb/trunk@6542 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index cd3a4fb270..21abbad392 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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;
}