Kaydet (Commit) e0fd10bc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

cid#1343654 FindBugs: Bad practice (FB.DMI_RANDOM_USED_ONLY_ONCE)

Change-Id: Ifbc362835bc62578851a029e9c5ce8c20184846a
üst 29aec387
......@@ -314,7 +314,7 @@ public class Bootstrap {
// create random pipe name
String sPipeName = "uno" +
Long.toString( (new Random()).nextLong() & 0x7fffffffffffffffL );
Long.toString(randomPipeName.nextLong() & 0x7fffffffffffffffL);
// create call with arguments
String[] cmdArray = new String[ argArray.length + 2 ];
......@@ -372,6 +372,8 @@ public class Bootstrap {
return xContext;
}
private static final Random randomPipeName = new Random();
private static void pipe(
final InputStream in, final PrintStream out, final String prefix ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment