@Test(timeout=120000) public void testRefillReservoir() throws Exception { OsSecureRandom random = getOsSecureRandom(); for (int i = 0; i < 8196; i++) { 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();  }