--- old/test/sun/security/provider/SecureRandom/StrongSecureRandom.java 2016-05-19 14:17:02.284995362 -0700 +++ new/test/sun/security/provider/SecureRandom/StrongSecureRandom.java 2016-05-19 14:17:02.060995359 -0700 @@ -25,7 +25,7 @@ * @test * @bug 6425477 8141039 * @summary Better support for generation of high entropy random numbers - * @run main StrongSecureRandom + * @run main/othervm StrongSecureRandom */ import java.security.*; import java.util.*; @@ -258,6 +258,11 @@ } public static void main(String args[]) throws Exception { + // we are going to use "securerandom.source" security property + // reset "java.security.egd" system property + // since it overrides "securerandom.source" security property + System.setProperty("java.security.egd", ""); + testDefaultEgd(); for (String algo : new String[]{ "SHA1PRNG", "Hash_DRBG", "HMAC_DRBG", "CTR_DRBG"}) {