class DrngImpl implements Drng {

  @Override
  public boolean nextBit() {
    if (bitsLeft == 0) {
      drbg.nextBytes(randomBytes);
      bitsLeft = RANDOMBUFFER_SIZE * Byte.SIZE;
    }
    int index = RANDOMBUFFER_SIZE * Byte.SIZE - bitsLeft;
    byte currentByte = randomBytes[index / (Byte.SIZE)];
    byte currentBit = (byte) (currentByte >> (index % (Byte.SIZE)));
    bitsLeft--;
    return currentBit == 0x00 ? false : true;
  }

  public  DrngImpl(Drbg drbg);

}