diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-04-01 00:09:34 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-04-01 00:09:34 +0200 |
commit | 14e3523c60fd6c22d46c357c539e1954987bd744 (patch) | |
tree | d175a7e7f43599ae684e465fad1ad20ceb9ed972 /system/libraries/Encrypt.php | |
parent | 1af54e842b6b6e2aecd177b3cf6ae2e17be31f4a (diff) | |
parent | 0612756dd37a3472259a19814e1a9bb403ab6e11 (diff) |
Merge pull request #2369 from vlakoff/develop-2
Some cleanup related to mt_rand()
Diffstat (limited to 'system/libraries/Encrypt.php')
-rw-r--r-- | system/libraries/Encrypt.php | 2 |
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); |