From 4a557aceebadbc1e22090c1763e7d369b62bf8a6 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Fri, 29 Sep 2006 07:43:19 +0000 Subject: [PATCH] Changed local variable "ran" to static class member to fix multi-thread build issue git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1643 6f19259b-4bc3-4df7-8a09-765794883524 --- .../FrameworkTasks/org/tianocore/framework/tasks/Tool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java index 6eb9f65e31..fbf69e288d 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java @@ -38,6 +38,7 @@ public class Tool implements EfiDefine, Section { private Input tempInputFile = new Input(); private String outputPath; private String outputFileName ; + private static Random ran = new Random(9999); private List
gensectList = new ArrayList
(); /** Call extern tool @@ -147,7 +148,6 @@ public class Tool implements EfiDefine, Section { } try { - Random ran = new Random(9999); this.outputFileName = "Temp" + ran.nextInt(); argument = toolArgList + inputFiles.toStringWithSinglepPrefix(" -i ") + tempInputFile.toString(" ")+ " -o " + outputFileName; -- 2.39.2