Lines Matching defs:bits
2349 * Return 'bits' bits of random entropy from fctx->rand_buf,
2351 * number of bits is greater than the number in the buffer.
2354 random_bits(fetchctx_t *fctx, isc_uint32_t bits) {
2358 REQUIRE(bits <= 32);
2359 if (bits == 0)
2362 if (bits >= fctx->rand_bits) {
2364 bits -= fctx->rand_bits;
2365 ret = fctx->rand_buf << bits;
2372 if (bits > 0) {
2374 if (bits < 32) {
2375 mask = (1 << bits) - 1;
2379 fctx->rand_buf >>= bits;
2380 fctx->rand_bits -= bits;
6877 * Clear cache bits.