summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-10-17 22:22:16 +0200
committervlakoff <vlakoff@gmail.com>2013-10-17 22:22:16 +0200
commit3a3d5f6c2320a90436de241af41fe22df7344728 (patch)
treeaf1d16596d7a92f98187bb0d9a1006fe86680bf4 /tests/codeigniter
parent3d759d73d441655bbf7b441dadd87a10d6732855 (diff)
Replace the last rand() with mt_rand()
Better entropy, faster. Also fixed a few "it's" typos.
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);