@Test(timeout=120000) public void testRandomLong() throws Exception { OsSecureRandom random = getOsSecureRandom(); long rand1 = random.nextLong(); long rand2 = random.nextLong(); while (rand1 == rand2) { rand2 = random.nextLong(); } 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();  }