Searched refs:upper_bound (Results 1 - 1 of 1) sorted by relevance

/bind-9.6-ESV-R11/lib/dns/
H A Ddispatch.c548 dispatch_arc4uniformrandom(arc4ctx_t *actx, isc_uint16_t upper_bound) { argument
551 if (upper_bound < 2)
556 * upper_bound and contain at least a half of the 16 bit range.
559 if (upper_bound > 0x8000)
560 min = 1 + ~upper_bound; /* 0x8000 - upper_bound */
562 min = (isc_uint16_t)(0x10000 % (isc_uint32_t)upper_bound);
576 return (r % upper_bound);

Completed in 1168 milliseconds