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
This commit is contained in:
jwang36 2006-09-29 07:43:19 +00:00
parent 323e2ffc21
commit 4a557aceeb
1 changed files with 1 additions and 1 deletions

View File

@ -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;