@Test
public void testNextBigIntegerLongSize() {

  BigInteger limit = new
      BigInteger("123439058309458908362350987123509834703458923475903745093840934590872340"
          + "98237469839305077937827359696778362338580384509238907249057290374589072332459"
          + "00987120359876321450987345");
  for (int i = 0; i < 10; i++) {
    BigInteger b = drng.nextBigInteger(limit);
    assertInRange(b, BigInteger.ZERO, limit);
  }
}