@Test(timeout=120000) public void testRandomDouble() throws Exception { OsSecureRandom random = getOsSecureRandom(); double rand1 = random.nextDouble(); double rand2 = random.nextDouble(); while (rand1 == rand2) { rand2 = random.nextDouble(); } random.close(); }
@Override synchronized public void close() throws IOException { stream.close(); }
OsSecureRandom extends Random implements Closeable, Configurable { @Override synchronized public void close() throws IOException { stream.close(); } }
OsSecureRandom extends Random implements Closeable, Configurable { @Override synchronized public void close() throws IOException { stream.close(); } OsSecureRandom(); }
OsSecureRandom extends Random implements Closeable, Configurable { @Override synchronized public void close() throws IOException { stream.close(); } OsSecureRandom(); @Override synchronized void setConf(Configuration conf); @Override synchronized Configuration getConf(); @Override synchronized void nextBytes(byte[] bytes); @Override synchronized void close(); }
OsSecureRandom extends Random implements Closeable, Configurable { @Override synchronized public void close() throws IOException { stream.close(); } OsSecureRandom(); @Override synchronized void setConf(Configuration conf); @Override synchronized Configuration getConf(); @Override synchronized void nextBytes(byte[] bytes); @Override synchronized void close();  }