Home
last modified time | relevance | path

Searched refs:random (Results 1 – 14 of 14) sorted by relevance

/system/extras/puncture_fs/
Dpuncture_fs.c65 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/
DSoftGateKeeper.h87 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/
Dmultinetwork_base.py23 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))
Dsrcaddr_selection_test.py19 import random
130 self.test_netid = random.choice(self.tuns.keys())
Dmultinetwork_test.py19 import random
40 id=random.randint(0, 65535),
74 return random.randint(1025, 65535)
1020 return random.randint(1000000, 2000000)
Dping6_test.py22 import random
192 cls.netid = random.choice(cls.NETIDS)
/system/core/adb/tests/
Dtest_adb.py10 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/
Dgatekeeper.h99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
/system/core/rootdir/
Dueventd.rc9 /dev/random 0666 root root
/system/extras/perfprofd/tests/
Dperfprofd_test.cc591 I: random seed set to 12345678 in TEST_F()
647 I: random seed set to 12345678 in TEST_F()
/system/core/libutils/tests/
DLruCache_test.cpp198 int index = random() % kNumKeys; in TEST_F()
/system/bt/stack/smp/
Dsmp_utils.c1327 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()
Dsmp_int.h491 extern UINT8 smp_calculate_random_input(UINT8 *random, UINT8 round);
/system/core/adb/
Dprotocol.txt81 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