@Override
  synchronized public void close() {
    if (stream != null) {
      IOUtils.cleanupWithLogger(LOG, stream);
      stream = null;
    }
  }
@Test(timeout=120000)
  public void testRandomInt() throws Exception {
    OsSecureRandom random = getOsSecureRandom();
    
    int rand1 = random.nextInt();
    int rand2 = random.nextInt();
    while (rand1 == rand2) {
      rand2 = random.nextInt();
    }
    random.close();
  }