Searched refs:numBits (Results 1 – 6 of 6) sorted by relevance
276 int numBits = 29; in test_nextJ() local277 int random = mySecureRandom.getNext(numBits); in test_nextJ()278 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()280 numBits = 0; in test_nextJ()281 random = mySecureRandom.getNext(numBits); in test_nextJ()282 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()284 numBits = 40; in test_nextJ()285 random = mySecureRandom.getNext(numBits); in test_nextJ()288 numBits = -1; in test_nextJ()289 random = mySecureRandom.getNext(numBits); in test_nextJ()[all …]
498 final protected int next(int numBits) { in next() argument499 int numBytes = (numBits+7)/8; in next()508 return next >>> (numBytes*8 - numBits); in next()
127 public BigInteger(int numBits, Random random) { in BigInteger() argument128 if (numBits < 0) { in BigInteger()129 throw new IllegalArgumentException("numBits < 0: " + numBits); in BigInteger()131 if (numBits == 0) { in BigInteger()135 int numberLength = (numBits + 31) >> 5; in BigInteger()141 digits[numberLength - 1] >>>= (-numBits) & 31; in BigInteger()
291 public int nextElement(int numBits) { in nextElement() argument292 return super.next(numBits); in nextElement()
1184 int numBits = (wordsInUse > 128) ? in toString() local1186 StringBuilder b = new StringBuilder(6*numBits + 2); in toString()
386 int numBits = BN_is_pow2(&positiveA) ? BN_num_bits(&positiveA) - 1 : BN_num_bits(&positiveA); in NativeBN_bitLength() local389 return numBits; in NativeBN_bitLength()