diff options
author | vlakoff <vlakoff@gmail.com> | 2013-03-30 00:06:39 +0100 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-03-30 00:06:53 +0100 |
commit | 0612756dd37a3472259a19814e1a9bb403ab6e11 (patch) | |
tree | 6ceebdd906d8b2f41ecc780a219e715d425c05ae /system/core/Security.php | |
parent | cf58d7ec6ad81f6e67192ed04e816805942aa4f9 (diff) |
Some cleanup related to mt_rand()
- min and max values are 0 and mt_getrandmax() by default
- remove useless mt_srand() seed calls
Diffstat (limited to 'system/core/Security.php')
-rw-r--r-- | system/core/Security.php | 3 |
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; |