@Test public void testWithTestsSeed() { System.setProperty("tests.seed", "deadbeef"); Containers.test$reset(); Assertions.assertThat(Containers.randomSeed64()).isEqualTo(Containers.randomSeed64()); }
@SuppressForbidden public static long randomSeed64() { if (testsSeedProperty == null) { try { testsSeedProperty = java.security.AccessController.doPrivileged( new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("tests.seed", NOT_AVAILABLE); } }); } catch (SecurityException e) { testsSeedProperty = NOT_AVAILABLE; Logger.getLogger(Containers.class.getName()) .log(Level.INFO, "Failed to read 'tests.seed' property for initial random seed.", e); } } long initialSeed; if (testsSeedProperty != NOT_AVAILABLE) { initialSeed = testsSeedProperty.hashCode(); } else { initialSeed = System.nanoTime() ^ System.identityHashCode(new Object()); } return BitMixer.mix64(initialSeed); }
Containers { @SuppressForbidden public static long randomSeed64() { if (testsSeedProperty == null) { try { testsSeedProperty = java.security.AccessController.doPrivileged( new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("tests.seed", NOT_AVAILABLE); } }); } catch (SecurityException e) { testsSeedProperty = NOT_AVAILABLE; Logger.getLogger(Containers.class.getName()) .log(Level.INFO, "Failed to read 'tests.seed' property for initial random seed.", e); } } long initialSeed; if (testsSeedProperty != NOT_AVAILABLE) { initialSeed = testsSeedProperty.hashCode(); } else { initialSeed = System.nanoTime() ^ System.identityHashCode(new Object()); } return BitMixer.mix64(initialSeed); } }
Containers { @SuppressForbidden public static long randomSeed64() { if (testsSeedProperty == null) { try { testsSeedProperty = java.security.AccessController.doPrivileged( new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("tests.seed", NOT_AVAILABLE); } }); } catch (SecurityException e) { testsSeedProperty = NOT_AVAILABLE; Logger.getLogger(Containers.class.getName()) .log(Level.INFO, "Failed to read 'tests.seed' property for initial random seed.", e); } } long initialSeed; if (testsSeedProperty != NOT_AVAILABLE) { initialSeed = testsSeedProperty.hashCode(); } else { initialSeed = System.nanoTime() ^ System.identityHashCode(new Object()); } return BitMixer.mix64(initialSeed); } private  Containers(); }
Containers { @SuppressForbidden public static long randomSeed64() { if (testsSeedProperty == null) { try { testsSeedProperty = java.security.AccessController.doPrivileged( new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("tests.seed", NOT_AVAILABLE); } }); } catch (SecurityException e) { testsSeedProperty = NOT_AVAILABLE; Logger.getLogger(Containers.class.getName()) .log(Level.INFO, "Failed to read 'tests.seed' property for initial random seed.", e); } } long initialSeed; if (testsSeedProperty != NOT_AVAILABLE) { initialSeed = testsSeedProperty.hashCode(); } else { initialSeed = System.nanoTime() ^ System.identityHashCode(new Object()); } return BitMixer.mix64(initialSeed); } private  Containers(); @SuppressForbidden static long randomSeed64(); }
Containers { @SuppressForbidden public static long randomSeed64() { if (testsSeedProperty == null) { try { testsSeedProperty = java.security.AccessController.doPrivileged( new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("tests.seed", NOT_AVAILABLE); } }); } catch (SecurityException e) { testsSeedProperty = NOT_AVAILABLE; Logger.getLogger(Containers.class.getName()) .log(Level.INFO, "Failed to read 'tests.seed' property for initial random seed.", e); } } long initialSeed; if (testsSeedProperty != NOT_AVAILABLE) { initialSeed = testsSeedProperty.hashCode(); } else { initialSeed = System.nanoTime() ^ System.identityHashCode(new Object()); } return BitMixer.mix64(initialSeed); } private  Containers(); @SuppressForbidden static long randomSeed64(); static final int DEFAULT_EXPECTED_ELEMENTS; }