@Test
public void testNextBytes() throws NoSuchAlgorithmException {

  byte[] bytes = new byte[]{0x10, 0x09, 0x01};
  HmacDrbg rand1 =
      new HmacDrbg(bytes);
  HmacDrbg rand2 =
      new HmacDrbg(bytes);
  HmacDrbg rand3 = new HmacDrbg();
  byte[] randBytes1 = new byte[10];
  byte[] randBytes2 = new byte[10];
  byte[] randBytes3 = new byte[10];
  rand1.nextBytes(randBytes1);
  rand2.nextBytes(randBytes2);
  rand3.nextBytes(randBytes3);
  assertArrayEquals(randBytes1, randBytes2);
  assertFalse(Arrays.equals(randBytes1, randBytes3));
}