summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
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 /tests/codeigniter
parent3d759d73d441655bbf7b441dadd87a10d6732855 (diff)
parent3a3d5f6c2320a90436de241af41fe22df7344728 (diff)
Merge pull request #2686 from vlakoff/develop
Replace the last rand() with mt_rand()
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/core/Security_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php
index 3f6e3b07a..433ad313f 100644
--- a/tests/codeigniter/core/Security_test.php
+++ b/tests/codeigniter/core/Security_test.php
@@ -5,7 +5,7 @@ class Security_test extends CI_TestCase {
public function set_up()
{
// Set cookie for security test
- $_COOKIE['ci_csrf_cookie'] = md5(uniqid(rand(), TRUE));
+ $_COOKIE['ci_csrf_cookie'] = md5(uniqid(mt_rand(), TRUE));
// Set config for Security class
$this->ci_set_config('csrf_protection', TRUE);