Home
last modified time | relevance | path

Searched refs:arc4random_uniform (Results 1 – 22 of 22) sorted by relevance

/aosp12/bionic/libc/upstream-openbsd/lib/libc/crypt/
H A Darc4random_uniform.c33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() function
57 DEF_WEAK(arc4random_uniform);
/aosp12/system/netd/tests/
H A Dtest_utils.cpp37 return 100000 * arc4random_uniform(7) + 12000 + arc4random_uniform(3000); in randomUid()
H A Dsock_diag_test.cpp37 uint16_t port = 1024 + arc4random_uniform(0xffff - 1024); in bindAndListen()
H A Dbinder_test.cpp755 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()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/net/
H A Dres_random.c180 ru_x = arc4random_uniform(RU_M); in res_initid()
194 j = arc4random_uniform(RU_N); in res_initid()
/aosp12/system/netd/tests/benchmarks/
H A Ddns_benchmark.cpp88 const uint32_t ofs = arc4random_uniform(getMappings().size()); in benchmark()
/aosp12/packages/modules/DnsResolver/tests/
H A Dresolv_stress_test.cpp58 uint32_t ofs = arc4random_uniform(mappings.size()); in RunGetAddrInfoStressTest()
H A Dresolv_integration_test.cpp1170 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()
/aosp12/packages/modules/DnsResolver/
H A Dres_mkquery.cpp122 hp->id = htons(arc4random_uniform(65536)); in res_nmkquery()
H A DDnsProxyListener.cpp313 return (arc4random_uniform(subsampling_denom) == 0) ? subsampling_denom : 0; in getDnsEventSubsamplingRate()
926 !setQueryId(msg.data(), msgLen, arc4random_uniform(65536))) { in run()
H A Dres_send.cpp265 int port = 1025 + (arc4random_uniform(65535 - 1025)); in random_bind()
/aosp12/system/netd/server/
H A DClatdControllerTest.cpp137 uint32_t rand = arc4random_uniform(0xffffffff); in TEST_F()
H A DIptablesRestoreControllerTest.cpp143 mChainName = StringPrintf("netd_unit_test_%u", arc4random_uniform(10000)).c_str(); in createTestChain()
H A DSockDiagTest.cpp45 uint16_t port = 1024 + arc4random_uniform(0xffff - 1024); in bindAndListen()
/aosp12/bionic/libc/include/
H A Dstdlib.h101 uint32_t arc4random_uniform(uint32_t __upper_bound);
/aosp12/bionic/libc/bionic/
H A Dpthread_create.cpp127 (getpid() == 1) ? 0 : (arc4random_uniform(SCS_GUARD_REGION_SIZE / SCS_SIZE - 1) * SCS_SIZE); in __init_shadow_call_stack()
/aosp12/bionic/linker/
H A Dlinker_phdr.cpp601 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()
H A Dlinker.cpp1507 size_t r = arc4random_uniform(n); in shuffle()
/aosp12/packages/modules/DnsResolver/tests/dns_responder/
H A Ddns_responder.cpp781 if (arc4random_uniform(bound) > bound * getResponseProbability(protocol)) { in handleDNSRequest()
/aosp12/bionic/libc/
H A Dlibc.map.txt234 arc4random_uniform;
H A DAndroid.bp620 "upstream-openbsd/lib/libc/crypt/arc4random_uniform.c",
/aosp12/bionic/tools/versioner/platforms/
H A Dlibc.map.txt234 arc4random_uniform;