summaryrefslogtreecommitdiffstats
path: root/system/core/Security.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-04-01 00:09:34 +0200
committerAndrey Andreev <narf@bofh.bg>2013-04-01 00:09:34 +0200
commit14e3523c60fd6c22d46c357c539e1954987bd744 (patch)
treed175a7e7f43599ae684e465fad1ad20ceb9ed972 /system/core/Security.php
parent1af54e842b6b6e2aecd177b3cf6ae2e17be31f4a (diff)
parent0612756dd37a3472259a19814e1a9bb403ab6e11 (diff)
Merge pull request #2369 from vlakoff/develop-2
Some cleanup related to mt_rand()
Diffstat (limited to 'system/core/Security.php')
-rw-r--r--system/core/Security.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 7aae54efc..196d61144 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -488,8 +488,7 @@ class CI_Security {
{
if ($this->_xss_hash === '')
{
- mt_srand();
- $this->_xss_hash = md5(time() + mt_rand(0, 1999999999));
+ $this->_xss_hash = md5(uniqid(mt_rand()));
}
return $this->_xss_hash;