MDL-29257 use more entropy in repo upload
[moodle.git] / repository / lib.php
index 965d9d8..b6f09a7 100644 (file)
@@ -1317,7 +1317,7 @@ abstract class repository {
             $dir = $CFG->dataroot.'/temp/download/';
         }
         if (empty($filename)) {
-            $filename = uniqid('repo').'_'.time().'.tmp';
+            $filename = uniqid('repo', true).'_'.time().'.tmp';
         }
         if (file_exists($dir.$filename)) {
             $filename = uniqid('m').$filename;