summaryrefslogtreecommitdiff
path: root/Tools/Source
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-29 07:43:19 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-29 07:43:19 +0000
commit4a557aceebadbc1e22090c1763e7d369b62bf8a6 (patch)
tree2612f2b7e357b6b69bc0b23186b728d301d6368c /Tools/Source
parent323e2ffc21aadcd77f6e505f3a27957d94484059 (diff)
downloadedk2-4a557aceebadbc1e22090c1763e7d369b62bf8a6.zip
edk2-4a557aceebadbc1e22090c1763e7d369b62bf8a6.tar.gz
edk2-4a557aceebadbc1e22090c1763e7d369b62bf8a6.tar.bz2
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
Diffstat (limited to 'Tools/Source')
-rw-r--r--Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java
index 6eb9f65..fbf69e2 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<Section> gensectList = new ArrayList<Section>();
/**
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;