summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-18 12:59:29 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-18 12:59:29 +0200
commit643bf02abd9a03b3a5074cda36fba8ca50814cfb (patch)
treeaf1d16596d7a92f98187bb0d9a1006fe86680bf4 /system/core
parent3d759d73d441655bbf7b441dadd87a10d6732855 (diff)
parent3a3d5f6c2320a90436de241af41fe22df7344728 (diff)
Merge pull request #2686 from vlakoff/develop
Replace the last rand() with mt_rand()
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 368e17dc3..6f5f5cb90 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -884,7 +884,7 @@ class CI_Security {
{
if ($this->_csrf_hash === '')
{
- // If the cookie exists we will use it's value.
+ // If the cookie exists we will use its value.
// We don't necessarily want to regenerate it with
// each page load since a page could contain embedded
// sub-pages causing this feature to fail
@@ -894,7 +894,7 @@ class CI_Security {
return $this->_csrf_hash = $_COOKIE[$this->_csrf_cookie_name];
}
- $this->_csrf_hash = md5(uniqid(rand(), TRUE));
+ $this->_csrf_hash = md5(uniqid(mt_rand(), TRUE));
$this->csrf_set_cookie();
}