Searched refs:random (Results 1 – 14 of 14) sorted by relevance
/system/extras/puncture_fs/ |
D | puncture_fs.c | 65 return start + (((u64)random() << 31) | (u64)random()) % (end - start); in get_random_num() 66 return start + (random() % (end - start)); in get_random_num() 70 return 'A' + random() % ('Z' - 'A'); in get_random_char() 81 base[random() % min(base_length, size)] = get_random_char(); in create_unique_file()
|
/system/core/gatekeeperd/ |
D | SoftGateKeeper.h | 87 virtual void GetRandom(void *random, uint32_t requested_length) const { in GetRandom() argument 88 if (random == NULL) return; in GetRandom() 89 RAND_pseudo_bytes((uint8_t *) random, requested_length); in GetRandom()
|
/system/extras/tests/net_test/ |
D | multinetwork_base.py | 23 import random 150 return random.randint(*cls.UidRangeForNetid(netid)) 200 return prefix + "%d.%d" % (random.randint(0, 31), random.randint(0, 255)) 202 return prefix + "%x:%x" % (random.randint(0, 65535), 203 random.randint(0, 65535))
|
D | srcaddr_selection_test.py | 19 import random 130 self.test_netid = random.choice(self.tuns.keys())
|
D | multinetwork_test.py | 19 import random 40 id=random.randint(0, 65535), 74 return random.randint(1025, 65535) 1020 return random.randint(1000000, 2000000)
|
D | ping6_test.py | 22 import random 192 cls.netid = random.choice(cls.NETIDS)
|
/system/core/adb/tests/ |
D | test_adb.py | 10 import random 114 size = random.randrange(min_size, max_size, 1024) 134 size = random.randrange(min_size, max_size, 1024) 433 random.seed(0)
|
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper.h | 99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
|
/system/core/rootdir/ |
D | ueventd.rc | 9 /dev/random 0666 root root
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 591 I: random seed set to 12345678 in TEST_F() 647 I: random seed set to 12345678 in TEST_F()
|
/system/core/libutils/tests/ |
D | LruCache_test.cpp | 198 int index = random() % kNumKeys; in TEST_F()
|
/system/bt/stack/smp/ |
D | smp_utils.c | 1327 UINT8 smp_calculate_random_input(UINT8 *random, UINT8 round) in smp_calculate_random_input() argument 1333 SMP_TRACE_DEBUG("random: 0x%02x, round: %d, i: %d, j: %d", random[i], round, i, j); in smp_calculate_random_input() 1334 ri = ((random[i] >> j) & 1) | 0x80; in smp_calculate_random_input()
|
D | smp_int.h | 491 extern UINT8 smp_calculate_random_input(UINT8 *random, UINT8 round);
|
/system/core/adb/ |
D | protocol.txt | 81 connect to the sender. If type is TOKEN(1), data is a random token that 87 packet and a new random token, so that the recipient can retry signing
|