Searched refs:arc4random_uniform (Results 1 – 22 of 22) sorted by relevance
33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() function57 DEF_WEAK(arc4random_uniform);
37 return 100000 * arc4random_uniform(7) + 12000 + arc4random_uniform(3000); in randomUid()
37 uint16_t port = 1024 + arc4random_uniform(0xffff - 1024); in bindAndListen()
755 int uid = baseUid + 500 + arc4random_uniform(1000); in TEST_F()1171 std::string intIface1 = StringPrintf("netdtest_%u", arc4random_uniform(10000)); in TEST_F()1172 std::string intIface2 = StringPrintf("netdtest_%u", arc4random_uniform(10000)); in TEST_F()1173 std::string intIface3 = StringPrintf("netdtest_%u", arc4random_uniform(10000)); in TEST_F()1176 u_int32_t rNumber = arc4random_uniform(10000); in TEST_F()
180 ru_x = arc4random_uniform(RU_M); in res_initid()194 j = arc4random_uniform(RU_N); in res_initid()
88 const uint32_t ofs = arc4random_uniform(getMappings().size()); in benchmark()
58 uint32_t ofs = arc4random_uniform(mappings.size()); in RunGetAddrInfoStressTest()
1170 unsigned delay = arc4random_uniform(1 * 1000 * 1000); // <= 1s in TEST_F()1174 if (arc4random_uniform(2)) { in TEST_F()4969 unsigned delay = arc4random_uniform(10 * 1000); // 10ms in TEST_F()
122 hp->id = htons(arc4random_uniform(65536)); in res_nmkquery()
313 return (arc4random_uniform(subsampling_denom) == 0) ? subsampling_denom : 0; in getDnsEventSubsamplingRate()926 !setQueryId(msg.data(), msgLen, arc4random_uniform(65536))) { in run()
265 int port = 1025 + (arc4random_uniform(65535 - 1025)); in random_bind()
137 uint32_t rand = arc4random_uniform(0xffffffff); in TEST_F()
143 mChainName = StringPrintf("netd_unit_test_%u", arc4random_uniform(10000)).c_str(); in createTestChain()
45 uint16_t port = 1024 + arc4random_uniform(0xffff - 1024); in bindAndListen()
101 uint32_t arc4random_uniform(uint32_t __upper_bound);
127 (getpid() == 1) ? 0 : (arc4random_uniform(SCS_GUARD_REGION_SIZE / SCS_SIZE - 1) * SCS_SIZE); in __init_shadow_call_stack()
601 kGapAlignment * (is_first_stage_init() ? 1 : arc4random_uniform(kMaxGapUnits - 1) + 1); in ReserveWithAlignmentPadding()622 size_t n = is_first_stage_init() ? 0 : arc4random_uniform((last - first) / start_align + 1); in ReserveWithAlignmentPadding()
1507 size_t r = arc4random_uniform(n); in shuffle()
781 if (arc4random_uniform(bound) > bound * getResponseProbability(protocol)) { in handleDNSRequest()
234 arc4random_uniform;
620 "upstream-openbsd/lib/libc/crypt/arc4random_uniform.c",