diff options
author | vlakoff <vlakoff@gmail.com> | 2013-03-30 00:06:39 +0100 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-03-30 00:06:53 +0100 |
commit | 0612756dd37a3472259a19814e1a9bb403ab6e11 (patch) | |
tree | 6ceebdd906d8b2f41ecc780a219e715d425c05ae /system/core/Common.php | |
parent | cf58d7ec6ad81f6e67192ed04e816805942aa4f9 (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/core/Common.php')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index efa7a9380..b4f0c388e 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -92,7 +92,7 @@ if ( ! function_exists('is_really_writable')) */ if (is_dir($file)) { - $file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100)); + $file = rtrim($file, '/').'/'.md5(mt_rand()); if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) { return FALSE; |