@Test public void shouldCreateInstanceAndWaitForInitialization() throws Exception { Fortuna fortuna = Fortuna.createInstance(); try { fortuna.nextInt(42); } catch (IllegalStateException ignored) { fail("Did not wait for initialization"); } }
public static Fortuna createInstance() { return createInstance(defaultSources()); }
Fortuna extends Random { public static Fortuna createInstance() { return createInstance(defaultSources()); } }
Fortuna extends Random { public static Fortuna createInstance() { return createInstance(defaultSources()); } private  Fortuna(Generator generator, Pool[] pools); }
Fortuna extends Random { public static Fortuna createInstance() { return createInstance(defaultSources()); } private  Fortuna(Generator generator, Pool[] pools); static Fortuna createInstance(); static Fortuna createInstance(Iterable<EntropySource> sources); @Override synchronized void setSeed(long seed); }
Fortuna extends Random { public static Fortuna createInstance() { return createInstance(defaultSources()); } private  Fortuna(Generator generator, Pool[] pools); static Fortuna createInstance(); static Fortuna createInstance(Iterable<EntropySource> sources); @Override synchronized void setSeed(long seed);  }