mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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:
parent
323e2ffc21
commit
4a557aceeb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user