Home
last modified time | relevance | path

Searched refs:RandInt (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/benchmarks/CompletionModel/
DDecisionForestBenchmark.cpp27 auto RandInt = [&](int Max) { return rand() % Max; }; in generateRandomDataset() local
39 E.setNumReferences(RandInt(10000)); // Can be large integer. in generateRandomDataset()
40 E.setSymbolCategory(RandInt(10)); // 10 Symbol Category. in generateRandomDataset()
47 : RandInt(20)); in generateRandomDataset()
51 : RandInt(20)); in generateRandomDataset()
53 E.setScope(RandInt(4)); // 4 Scopes. in generateRandomDataset()
54 E.setContextKind(RandInt(32)); // 32 Context kinds. in generateRandomDataset()
59 E.setFilterLength(RandInt(15)); in generateRandomDataset()
/external/libchrome/base/
Drand_util_unittest.cc25 TEST(RandUtilTest, RandInt) { in TEST() argument
26 EXPECT_EQ(base::RandInt(0, 0), 0); in TEST()
27 EXPECT_EQ(base::RandInt(kIntMin, kIntMin), kIntMin); in TEST()
28 EXPECT_EQ(base::RandInt(kIntMax, kIntMax), kIntMax); in TEST()
34 base::RandInt(kIntMin, kIntMax); in TEST()
Drand_util.h23 BASE_EXPORT int RandInt(int min, int max);
Drand_util.cc25 int RandInt(int min, int max) { in RandInt() function
Dos_compat_android.cc161 char rand_char = static_cast<char>(base::RandInt('a', 'z')); in mkdtemp()
/external/libchrome/base/task_scheduler/
Dscheduler_lock_unittest.cc43 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in Run()
103 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST()
109 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST()
Dservice_thread.cc79 kReportedTraits[RandInt(0, base::size(kReportedTraits) - 1)]; in PerformHeartbeatLatencyReport()
/external/scapy/scapy/modules/
Dqueso.py14 from scapy.volatile import RandInt
77 ans, unans = sr(IP(dst=target)/TCP(dport=dport,flags=flags,seq=RandInt()),
Dp0f.py24 from scapy.volatile import RandInt, RandByte, RandChoice, RandNum, RandShort, RandString
529 elif qq == 'A': pkt.payload.ack = RandInt()
545 pkt.payload.seq = RandInt()
/external/libchrome/ipc/
Dipc_channel.cc48 base::RandInt(0, std::numeric_limits<int32_t>::max())); in GenerateUniqueRandomChannelID()
/external/scapy/scapy/contrib/
Dgtp.py321 XIntField("TEIDI", RandInt()) ]
327 XIntField("TEICI", RandInt())]
379 XIntField("Charging_id", RandInt())]
844 IE_TEICP(TEICI=RandInt()),
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc310 uint32_t size = RandInt(1, 99); in Run()
311 uint32_t type = RandInt(100, 999); in Run()
317 if (RandInt(0, 1)) { in Run()
426 uint32_t size = RandInt(1, 99); in TEST_F()
427 uint32_t type = RandInt(100, 999); in TEST_F()
553 size_t offset = RandInt(0, TEST_MEMORY_SIZE - 1); in TEST_F()
554 char value = RandInt(0, 255); in TEST_F()
Dhistogram_base.cc100 if (count - (count_scaled * scale) > base::RandInt(0, scale - 1)) in AddScaled()
/external/webrtc/modules/audio_processing/
Daudio_processing_impl_locking_unittest.cc64 int RandInt(int min, int max) { in RandInt() function in webrtc::__anon5d3f602b0111::RandomGenerator
69 int RandInt(int max) { in RandInt() function in webrtc::__anon5d3f602b0111::RandomGenerator
452 int sleeptime = rand_gen->RandInt(0, max_sleep); in SleepRandomMs()
482 frame[k * ch] = rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1; in PopulateAudioFrame()
/external/scapy/scapy/
Dasn1fields.py153 return RandInt()
Dvolatile.py174 class RandInt(RandNum): class
Dfields.py101 return {"B":RandByte,"H":RandShort,"I":RandInt, "Q":RandLong}[fmtt]()
/external/libchrome/mojo/core/
Dtrap_unittest.cc1665 return handles[base::RandInt(0, static_cast<int>(size) - 1)]; in RandomHandle()
1672 switch (base::RandInt(0, 10)) { in DoRandomThing()
/external/scapy/scapy/layers/
Dinet6.py61 from scapy.volatile import RandInt, RandIP6, RandShort
3212 a,b = sr(IPv6(dst=target, hlim=(minttl,maxttl))/TCP(seq=RandInt(),sport=sport, dport=dport),
Dinet.py1475 …a,b = sr(IP(dst=target, id=RandShort(), ttl=(minttl,maxttl))/TCP(seq=RandInt(),sport=sport, dport=…