Home
last modified time | relevance | path

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

/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
/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/webrtc/modules/audio_processing/
Daudio_processing_impl_locking_unittest.cc70 int RandInt(int min, int max) { in RandInt() function in webrtc::__anon5b24fac30111::RandomGenerator
75 int RandInt(int max) { in RandInt() function in webrtc::__anon5b24fac30111::RandomGenerator
456 int sleeptime = rand_gen->RandInt(0, max_sleep); in SleepRandomMs()
485 rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1; in PopulateAudioFrame()
/external/scapy/scapy/
Dvolatile.py174 class RandInt(RandNum): class
Dasn1fields.py153 return RandInt()
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=…