mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +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 Input tempInputFile = new Input();
|
||||||
private String outputPath;
|
private String outputPath;
|
||||||
private String outputFileName ;
|
private String outputFileName ;
|
||||||
|
private static Random ran = new Random(9999);
|
||||||
private List<Section> gensectList = new ArrayList<Section>();
|
private List<Section> gensectList = new ArrayList<Section>();
|
||||||
/**
|
/**
|
||||||
Call extern tool
|
Call extern tool
|
||||||
@ -147,7 +148,6 @@ public class Tool implements EfiDefine, Section {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Random ran = new Random(9999);
|
|
||||||
this.outputFileName = "Temp" + ran.nextInt();
|
this.outputFileName = "Temp" + ran.nextInt();
|
||||||
argument = toolArgList + inputFiles.toStringWithSinglepPrefix(" -i ")
|
argument = toolArgList + inputFiles.toStringWithSinglepPrefix(" -i ")
|
||||||
+ tempInputFile.toString(" ")+ " -o " + outputFileName;
|
+ tempInputFile.toString(" ")+ " -o " + outputFileName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user