Home
last modified time | relevance | path

Searched refs:rand_seed (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/payload_consumer/
Dextent_reader_unittest.cc52 unsigned int rand_seed; in SetUp() local
54 sample_[i] = rand_r(&rand_seed) % 256; in SetUp()
157 uint32_t rand_seed; in TEST_F() local
160 size_t start = rand_r(&rand_seed) % blob.size(); in TEST_F()
161 size_t size = rand_r(&rand_seed) % (blob.size() - start); in TEST_F()
Dcached_file_descriptor_unittest.cc114 uint32_t rand_seed; in TEST_F() local
117 size_t start = rand_r(&rand_seed) % blob_in.size(); in TEST_F()
118 size_t size = rand_r(&rand_seed) % (blob_in.size() - start); in TEST_F()
/system/nfc/src/nfa/ce/
Dnfa_ce_act.cc400 uint32_t rand_seed = GKI_get_tick_count(); in nfa_ce_t3t_generate_rand_nfcid() local
407 nfcid2[2] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
408 nfcid2[3] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
409 rand_seed >>= (rand_seed & 3); in nfa_ce_t3t_generate_rand_nfcid()
410 nfcid2[4] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
411 nfcid2[5] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
412 rand_seed >>= (rand_seed & 3); in nfa_ce_t3t_generate_rand_nfcid()
413 nfcid2[6] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
414 nfcid2[7] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.cpp36 constexpr int rand_seed = 0; variable
37 std::default_random_engine rnd(rand_seed);