@Test(timeout=120000) public void testRandomBytes() throws Exception { OsSecureRandom random = getOsSecureRandom(); checkRandomBytes(random, 16); checkRandomBytes(random, 32); checkRandomBytes(random, 128); checkRandomBytes(random, 256); 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();  }