Searched refs:RandInt (Results 1 - 15 of 15) sorted by relevance

/external/libchrome/base/
H A Drand_util.h22 BASE_EXPORT int RandInt(int min, int max);
H A Drand_util_unittest.cc25 TEST(RandUtilTest, RandInt) {
26 EXPECT_EQ(base::RandInt(0, 0), 0);
27 EXPECT_EQ(base::RandInt(kIntMin, kIntMin), kIntMin);
28 EXPECT_EQ(base::RandInt(kIntMax, kIntMax), kIntMax);
30 // Check that the DCHECKS in RandInt() don't fire due to internal overflow.
34 base::RandInt(kIntMin, kIntMax);
H A Drand_util.cc19 int RandInt(int min, int max) { function in namespace:base
H A Dos_compat_android.cc160 char rand_char = static_cast<char>(base::RandInt('a', 'z'));
/external/scapy/scapy/modules/
H A Dqueso.py14 from scapy.volatile import RandInt namespace
77 ans, unans = sr(IP(dst=target)/TCP(dport=dport,flags=flags,seq=RandInt()),
H A Dp0f.py24 from scapy.volatile import RandInt, RandByte, RandChoice, RandNum, RandShort, RandString namespace
469 # FIXME: RandInt() here does not work (bug (?) in
474 # struct.pack('I', RandInt())
529 elif qq == 'A': pkt.payload.ack = RandInt()
545 pkt.payload.seq = RandInt()
/external/libchrome/base/task_scheduler/
H A Dscheduler_lock_unittest.cc43 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19)));
103 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19)));
109 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19)));
/external/libchrome/base/metrics/
H A Dpersistent_memory_allocator_unittest.cc297 uint32_t size = RandInt(1, 99);
298 uint32_t type = RandInt(100, 999);
304 if (RandInt(0, 1)) {
413 uint32_t size = RandInt(1, 99);
414 uint32_t type = RandInt(100, 999);
499 size_t offset = RandInt(0, TEST_MEMORY_SIZE - 1);
500 char value = RandInt(0, 255);
/external/scapy/scapy/contrib/
H A Dgtp.py321 XIntField("TEIDI", RandInt()) ]
327 XIntField("TEICI", RandInt())]
379 XIntField("Charging_id", RandInt())]
844 IE_TEICP(TEICI=RandInt()),
/external/webrtc/webrtc/modules/audio_processing/
H A Daudio_processing_impl_locking_unittest.cc70 int RandInt(int min, int max) { function in class:webrtc::__anon30851::RandomGenerator
75 int RandInt(int max) { function in class:webrtc::__anon30851::RandomGenerator
456 int sleeptime = rand_gen->RandInt(0, max_sleep);
485 rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1;
/external/scapy/scapy/
H A Dasn1fields.py153 return RandInt()
H A Dvolatile.py174 class RandInt(RandNum): class in inherits:RandNum
H A Dfields.py101 return {"B":RandByte,"H":RandShort,"I":RandInt, "Q":RandLong}[fmtt]()
/external/scapy/scapy/layers/
H A Dinet6.py61 from scapy.volatile import RandInt, RandIP6, RandShort namespace
3212 a,b = sr(IPv6(dst=target, hlim=(minttl,maxttl))/TCP(seq=RandInt(),sport=sport, dport=dport),
H A Dinet.py1475 a,b = sr(IP(dst=target, id=RandShort(), ttl=(minttl,maxttl))/TCP(seq=RandInt(),sport=sport, dport=dport),

Completed in 386 milliseconds