Searched refs:upper_bound (Results 1 – 1 of 1) sorted by relevance
255 arc4random_uniform(u_int32_t upper_bound) in arc4random_uniform() argument259 if (upper_bound < 2) in arc4random_uniform()263 min = 0x100000000UL % upper_bound; in arc4random_uniform()266 if (upper_bound > 0x80000000) in arc4random_uniform()267 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ in arc4random_uniform()270 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; in arc4random_uniform()286 return r % upper_bound; in arc4random_uniform()