Lines Matching defs:upper_bound
17 arc4random_uniform(uint32_t upper_bound)
25 * s -- upper_bound
32 if (upper_bound <= 1)
35 product = upper_bound * (uint64_t)arc4random();
37 if ((uint32_t)product < upper_bound) {
40 /* threshold = (2**32 - upper_bound) % upper_bound */
41 threshold = -upper_bound % upper_bound;
43 product = upper_bound * (uint64_t)arc4random();