]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Changed local variable "ran" to static class member to fix multi-thread build issue
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 29 Sep 2006 07:43:19 +0000 (07:43 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 29 Sep 2006 07:43:19 +0000 (07:43 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1643 6f19259b-4bc3-4df7-8a09-765794883524

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