1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02: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:
Meik Sievertsen
2009-01-16 17:36:21 +00:00
parent 6bfa84bb74
commit 5866ee9101

View File

@@ -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);
}
/**