@Test
public void testFromRandomSeed() {

  byte[] seed = new byte[AesCtrDrbg.SEED_LENGTH];
  for (int i = 0; i < AesCtrDrbg.SEED_LENGTH; i++) {
    seed[i] = (byte) i;
  }
  Drbg drbgA = AesCtrDrbgFactory.fromRandomSeed(seed);
  Drbg drbgB = new AesCtrDrbg(seed);
  byte[] bytesA = new byte[10000];
  byte[] bytesB = new byte[10000];
  drbgA.nextBytes(bytesA);
  drbgB.nextBytes(bytesB);
  assertArrayEquals(bytesA, bytesB);
}