diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-29 07:43:19 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-29 07:43:19 +0000 |
commit | 4a557aceebadbc1e22090c1763e7d369b62bf8a6 (patch) | |
tree | 2612f2b7e357b6b69bc0b23186b728d301d6368c /Tools | |
parent | 323e2ffc21aadcd77f6e505f3a27957d94484059 (diff) | |
download | edk2-platforms-4a557aceebadbc1e22090c1763e7d369b62bf8a6.tar.xz |
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')
-rw-r--r-- | Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java | 2 |
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 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<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;
|