There is a tiny probability that the `Random` objects in the 2 child processes 
might be created at the same nano time and they will always produce the same 
output and the game will never end. This code change explicitly provides them 
with different seeds.

-------------

Commit messages:
 - 8266753: jdk/test/lib/process/ProcTest.java failed with "Exception: Proc 
abnormal end"

Changes: https://git.openjdk.java.net/jdk/pull/3981/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3981&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266753
  Stats: 6 lines in 1 file changed: 2 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3981.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3981/head:pull/3981

PR: https://git.openjdk.java.net/jdk/pull/3981

Reply via email to