/external/libchrome/base/ |
rand_util.h | 22 BASE_EXPORT int RandInt(int min, int max);
|
rand_util_unittest.cc | 25 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);
|
rand_util.cc | 19 int RandInt(int min, int max) {
|
os_compat_android.cc | 160 char rand_char = static_cast<char>(base::RandInt('a', 'z'));
|
/external/scapy/scapy/modules/ |
queso.py | 14 from scapy.volatile import RandInt 77 ans, unans = sr(IP(dst=target)/TCP(dport=dport,flags=flags,seq=RandInt()),
|
p0f.py | 24 from scapy.volatile import RandInt, RandByte, RandChoice, RandNum, RandShort, RandString 391 pers = pb[random.randint(0, len(pb) - 1)] 419 # why we use random.randint() 424 options.append(('MSS', random.randint(1, maxmss))) 431 'MSS', coef*random.randint(1, maxmss//coef))) 462 ts_a = random.randint(120, 100*60*60*24*365) 469 # FIXME: RandInt() here does not work (bug (?) in 474 # struct.pack('I', RandInt()) 475 ts_b = random.randint(1, 2**32-1) 529 elif qq == 'A': pkt.payload.ack = RandInt() [all...] |
/external/libchrome/base/task_scheduler/ |
scheduler_lock_unittest.cc | 43 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/ |
persistent_memory_allocator_unittest.cc | 297 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/ |
gtp.py | 321 XIntField("TEIDI", RandInt()) ] 327 XIntField("TEICI", RandInt())] 379 XIntField("Charging_id", RandInt())] 844 IE_TEICP(TEICI=RandInt()), [all...] |
/external/webrtc/webrtc/modules/audio_processing/ |
audio_processing_impl_locking_unittest.cc | 70 int RandInt(int min, int max) { 75 int RandInt(int max) { 456 int sleeptime = rand_gen->RandInt(0, max_sleep); 485 rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1; [all...] |
/system/bt/service/example/heart_rate/ |
heart_rate_server.cc | 206 uint8_t heart_rate = base::RandInt(90, 130);
|
/system/update_engine/ |
update_attempter.cc | 435 } else if (base::RandInt(0, 4) == 0) { 556 base::RandInt(1, scatter_factor_.InSeconds()))); [all...] |
omaha_request_action.cc | [all...] |
/external/scapy/scapy/ |
asn1fields.py | 153 return RandInt()
|
volatile.py | 52 self.cnt_key = self.rnd.randint(0,2**self.n-1) 53 self.sbox = [self.rnd.randint(0, self.fsmask) 174 class RandInt(RandNum): 330 remain = random.randint(0,remain) 332 ip.append("%04x" % random.randint(0,65535)) 520 if random.randint(0,1):
|
fields.py | 101 return {"B":RandByte,"H":RandShort,"I":RandInt, "Q":RandLong}[fmtt]() [all...] |
/system/update_engine/common/ |
utils.cc | 817 return base::RandInt(min, max); [all...] |
/external/scapy/scapy/layers/ |
inet6.py | 61 from scapy.volatile import RandInt, RandIP6, RandShort [all...] |
inet.py | [all...] |