summaryrefslogtreecommitdiffstats
path: root/system/libraries/Encrypt.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-03-30 00:06:39 +0100
committervlakoff <vlakoff@gmail.com>2013-03-30 00:06:53 +0100
commit0612756dd37a3472259a19814e1a9bb403ab6e11 (patch)
tree6ceebdd906d8b2f41ecc780a219e715d425c05ae /system/libraries/Encrypt.php
parentcf58d7ec6ad81f6e67192ed04e816805942aa4f9 (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/libraries/Encrypt.php')
-rw-r--r--system/libraries/Encrypt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index c6a1cb175..8ac5420de 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -244,7 +244,7 @@ class CI_Encrypt {
$rand = '';
do
{
- $rand .= mt_rand(0, mt_getrandmax());
+ $rand .= mt_rand();
}
while (strlen($rand) < 32);