aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/core/security.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/core/security.php b/phpBB/includes/core/security.php
index be7f4950f4..5079c361a2 100644
--- a/phpBB/includes/core/security.php
+++ b/phpBB/includes/core/security.php
@@ -78,6 +78,7 @@ class phpbb_security extends phpbb_plugin_support
return substr($val, 4, 16);
}
+
$val = phpbb::$config['rand_seed'] . microtime();
$val = md5($val);
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;
}
- $result = substr($val, 4, 16);
+ return substr($val, 4, 16);
}
/**