From 8a52791ee8387e6f5cac570088ee18183900741b Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 24 Sep 2009 14:25:39 +0000 Subject: increased randomness of file name used in is_really_writable() --- system/codeigniter/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php index eb9dce648..73ff0196f 100644 --- a/system/codeigniter/Common.php +++ b/system/codeigniter/Common.php @@ -62,7 +62,7 @@ function is_really_writable($file) // write a file then read it. Bah... if (is_dir($file)) { - $file = rtrim($file, '/').'/'.md5(rand(1,100)); + $file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100)); if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) { -- cgit v1.2.3-24-g4f1b