/system/update_engine/update_manager/ |
H A D | prng.h | 20 #include <random> 26 // A thread-safe, unsecure, 32-bit pseudo-random number generator based on 33 // Returns a random unsigned 32-bit integer. 36 // Returns a random integer uniformly distributed in the range [min, max]. 43 // A pseudo-random number generator.
|
/system/connectivity/shill/ |
H A D | ip_address_store.h | 20 #include <random>
|
H A D | default_profile.h | 20 #include <random>
|
H A D | default_profile.cc | 19 #include <random>
|
/system/extras/puncture_fs/ |
H A D | puncture_fs.c | 65 return start + (((u64)random() << 31) | (u64)random()) % (end - start); 66 return start + (random() % (end - start)); 70 return 'A' + random() % ('Z' - 'A'); 81 base[random() % min(base_length, size)] = get_random_char();
|
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
H A D | test_channel.py | 41 import random namespace 52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \ 56 return ''.join(random.SystemRandom().choice(string.digits) for _ in \ 135 explicit name or address is not provided, a random string of characters 189 random name is used instead.
|
/system/extras/verity/fec/tests/ |
H A D | fec.py | 17 import random namespace 40 offset = random.randrange(0, size - max_errors)
|
/system/connectivity/dhcp_client/ |
H A D | dhcpv4.h | 20 #include <random>
|
H A D | dhcpv4.cc | 27 #include <random>
|
/system/core/adb/ |
H A D | test_adb.py | 26 import random namespace 212 random.seed(0)
|
H A D | test_device.py | 24 import random namespace 615 size = random.randrange(min_size, max_size, 1024) 632 size = random.randrange(min_size, max_size, 1024) 687 # Create 32 random files. 739 # Create some random files and a subdirectory containing more files. 831 # Populate device directory with random files. 866 # Populate device directory with random files. 899 # Populate device directory with random files. 923 # Populate device directory with random files. 951 # Populate device directory with random file [all...] |
/system/extras/tests/net_test/ |
H A D | forwarding_test.py | 18 import random namespace 100 netid, iface1, iface2 = random.sample(netids, 3)
|
H A D | neighbour_test.py | 18 import random namespace 85 self.netid = random.choice(self.tuns.keys()) 197 routing_mode = random.choice(["mark", "oif", "uid"]) 279 routing_mode = random.choice(["mark", "oif", "uid"])
|
H A D | sock_diag_test.py | 20 import random namespace 45 family, addr = random.choice([ 137 random.shuffle(socketpairs) 305 s = random.choice(socketpair) 306 if random.randrange(0, 2) == 1: 361 netid = random.choice(self.tuns.keys()) 382 self.netid = random.choice(self.tuns.keys())
|
H A D | multinetwork_base.py | 23 import random namespace 150 return random.randint(*cls.UidRangeForNetid(netid)) 205 return prefix + "%d.%d" % (random.randint(0, 31), random.randint(0, 255)) 207 return prefix + "%x:%x" % (random.randint(0, 65535), 208 random.randint(0, 65535))
|
H A D | net_test.py | 19 import random namespace 75 id=random.randint(0, 65535),
|
H A D | packets.py | 17 import random namespace 43 return random.randint(1025, 65535)
|
H A D | srcaddr_selection_test.py | 18 import random namespace 144 self.test_netid = random.choice(self.tuns.keys())
|
H A D | multinetwork_test.py | 19 import random namespace 610 # Send a UDP packet to a random on-link destination. 837 return random.randint(1000000, 2000000)
|
/system/core/crash_reporter/ |
H A D | crash_sender | 205 # Generate a uniform random number in 0..max-1. 208 # 32-bit random number read from /dev/urandom may be interpreted as negative 212 # roughly uniform random distribution for the modulo (as we are merely ignoring 219 local random="$(od -An -N4 -tu /dev/urandom)" 220 echo $(((random < 0 ? -random : random) % max))
|
/system/core/gatekeeperd/ |
H A D | SoftGateKeeper.h | 89 virtual void GetRandom(void *random, uint32_t requested_length) const { argument 90 if (random == NULL) return; 91 RAND_pseudo_bytes((uint8_t *) random, requested_length);
|
/system/gatekeeper/include/gatekeeper/ |
H A D | gatekeeper.h | 97 * Assings the random to the random UniquePtr, relinquishing ownership to the caller 99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
|
/system/extras/perfprofd/tests/ |
H A D | perfprofd_test.cc | 612 I: random seed set to 12345678 668 I: random seed set to 12345678
|
/system/bt/stack/smp/ |
H A D | smp_utils.c | 66 SMP_RAND_CMD_SIZE, /* 0x04: pairing random */ 94 smp_command_has_valid_fixed_length, /* 0x04: pairing random */ 120 smp_parameter_unconditionally_valid, /* 0x04: pairing random */ 158 smp_build_rand_cmd, /* 0x04: pairing random */ 1313 ** Description This function returns random input value to be used in commitment 1315 ** (if bit["round"] in "random" array == 1 then returns 0x81 1321 UINT8 smp_calculate_random_input(UINT8 *random, UINT8 round) argument 1327 SMP_TRACE_DEBUG("random: 0x%02x, round: %d, i: %d, j: %d", random[i], round, i, j); 1328 ri = ((random[ [all...] |
/system/core/libutils/tests/ |
H A D | LruCache_test.cpp | 217 int index = random() % kNumKeys;
|