/foundation/ai/ai_engine/test/performance/delay/sync_process/ |
H A D | sync_process_delay_test.cpp | 74 static int Random(void) in Random() function 97 switch (Random() % CHAR_TYPE) { in RandStr() 99 str[i] = MIN_UPPER_CASE_CHAR + Random() % ALPHABET_LENGTH; in RandStr() 102 str[i] = MIN_LOWER_CASE_CHAR + Random() % ALPHABET_LENGTH; in RandStr() 108 str[i] = MIN_NUMERIC_CHAR + Random() % DIGIT; in RandStr()
|
/foundation/ai/ai_engine/test/performance/delay/async_process/ |
H A D | async_process_delay_test.cpp | 86 static int Random(void) in Random() function 109 switch (Random() % CHAR_TYPE) { in RandStr() 111 str[i] = MIN_UPPER_CASE_CHAR + Random() % ALPHABET_LENGTH; in RandStr() 114 str[i] = MIN_LOWER_CASE_CHAR + Random() % ALPHABET_LENGTH; in RandStr() 120 str[i] = MIN_NUMERIC_CHAR + Random() % DIGIT; in RandStr()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | crypto_manager_test.cpp | 33 static std::vector<uint8_t> Random(uint32_t len); 41 randomKey = Random(KEY_LENGTH); in SetUpTestCase() 49 std::vector<uint8_t> CryptoManagerTest::Random(uint32_t len) in Random() function in CryptoManagerTest
|
H A D | kvdb_general_store_test.cpp | 59 static std::vector<uint8_t> Random(uint32_t len); 82 std::vector<uint8_t> KVDBGeneralStoreTest::Random(uint32_t len) in Random() function in OHOS::Test::DistributedDataTest::KVDBGeneralStoreTest 181 std::vector<uint8_t> randomKey = Random(KEY_LENGTH); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/ |
H A D | security_manager.cpp | 35 secKey = Random(KEY_SIZE); in GetDBPassword() 60 std::vector<uint8_t> SecurityManager::Random(int32_t len) in Random() function in OHOS::DistributedKv::SecurityManager
|
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | udmf_utils.cpp | 43 std::vector<uint8_t> Random(int32_t len, int32_t minimum, int32_t maximum) in Random() function 56 std::vector<uint8_t> randomDevices = Random(ID_LEN, MINIMUM, MAXIMUM); in GenerateId()
|
H A D | udmf_utils.h | 25 std::vector<uint8_t> Random(int32_t len, int32_t minimum = 0,
|
/foundation/distributeddatamgr/udmf/adapter/framework/common/ |
H A D | udmf_utils.cpp | 41 std::vector<uint8_t> Random(int32_t len, int32_t minimum, int32_t maximum) in Random() function 54 std::vector<uint8_t> randomDevices = Random(ID_LEN, MINIMUM, MAXIMUM); in GenerateId()
|
H A D | udmf_utils.h | 25 std::vector<uint8_t> Random(int32_t len, int32_t minimum = 0,
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | crypto_test.cpp | 28 * @tc.desc: Random.
39 vector<uint8_t> randomNumbers = Crypto::Random(len, min, max);
in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/utils/ |
H A D | crypto.h | 28 API_EXPORT static std::vector<uint8_t> Random(int32_t len, int32_t minimum = 0,
|
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/include/ |
H A D | security_manager.h | 37 std::vector<uint8_t> Random(int32_t len);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/ |
H A D | crypto.cpp | 25 std::vector<uint8_t> Crypto::Random(int32_t len, int32_t minimum, int32_t maximum) in Random() function in OHOS::DistributedData::Crypto
|
/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | hands_free_unit_calls.cpp | 24 : device_(device), id_(id), state_(state), number_(number), uuid_(Uuid::Random()), in HandsFreeUnitCalls()
|
H A D | bt_uuid.h | 108 static Uuid Random();
|
H A D | bt_uuid.cpp | 30 Uuid Uuid::Random() in Random() function in OHOS::bluetooth::Uuid
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | security_manager.h | 98 std::vector<uint8_t> Random(int32_t len);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | security_manager.cpp | 82 key = Random(KEY_SIZE); in GetDBPassword() 119 std::vector<uint8_t> SecurityManager::Random(int32_t len) in Random() function in OHOS::DistributedKv::SecurityManager
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/preprocess/ |
H A D | preprocess_utils.cpp | 74 std::vector<uint8_t> randomDevices = DistributedData::Crypto::Random(ID_LEN, MINIMUM, MAXIMUM); in GenerateId()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | single_store_impl_test.cpp | 31 std::vector<uint8_t> Random(int32_t len) in Random() function 850 std::vector<uint8_t> value = Random(4 * 1024 * 1024); in HWTEST_F() 908 std::vector<uint8_t> value = Random(4 * 1024 * 1024); in HWTEST_F()
|