]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java
Changed local variable "ran" to static class member to fix multi-thread build issue
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / Tool.java
index 6eb9f65e316906eed39b179a5a42552c8e10d465..fbf69e288dc047660dc01a93c6ea6cf009e67b06 100644 (file)
@@ -38,6 +38,7 @@ public class Tool implements EfiDefine, Section {
     private Input tempInputFile = new Input();\r
     private String outputPath;\r
     private String outputFileName ;\r
+    private static Random ran = new Random(9999); \r
     private List<Section>  gensectList = new ArrayList<Section>();\r
     /**\r
      Call extern tool\r
@@ -147,7 +148,6 @@ public class Tool implements EfiDefine, Section {
         } \r
 \r
         try {\r
-            Random ran = new Random(9999); \r
             this.outputFileName = "Temp" + ran.nextInt();\r
             argument   = toolArgList + inputFiles.toStringWithSinglepPrefix(" -i ") \r
                          + tempInputFile.toString(" ")+ " -o " + outputFileName;\r