Searched refs:randomBits (Results 1 – 1 of 1) sorted by relevance
627 this(1, randomBits(numBits, rnd)); in BigInteger()630 private static byte[] randomBits(int numBits, Random rnd) { in randomBits() method in BigInteger634 byte[] randomBits = new byte[numBytes]; in randomBits()638 rnd.nextBytes(randomBits); in randomBits()640 randomBits[0] &= (1 << (8-excessBits)) - 1; in randomBits()642 return randomBits; in randomBits()