Home
last modified time | relevance | path

Searched refs:Random (Results 1 - 20 of 20) sorted by relevance

/foundation/ai/ai_engine/test/performance/delay/sync_process/
H A Dsync_process_delay_test.cpp74 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 Dasync_process_delay_test.cpp86 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 Dcrypto_manager_test.cpp33 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 Dkvdb_general_store_test.cpp59 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 Dsecurity_manager.cpp35 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 Dudmf_utils.cpp43 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 Dudmf_utils.h25 std::vector<uint8_t> Random(int32_t len, int32_t minimum = 0,
/foundation/distributeddatamgr/udmf/adapter/framework/common/
H A Dudmf_utils.cpp41 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 Dudmf_utils.h25 std::vector<uint8_t> Random(int32_t len, int32_t minimum = 0,
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dcrypto_test.cpp28 * @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 Dcrypto.h28 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 Dsecurity_manager.h37 std::vector<uint8_t> Random(int32_t len);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/
H A Dcrypto.cpp25 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 Dhands_free_unit_calls.cpp24 : device_(device), id_(id), state_(state), number_(number), uuid_(Uuid::Random()), in HandsFreeUnitCalls()
H A Dbt_uuid.h108 static Uuid Random();
H A Dbt_uuid.cpp30 Uuid Uuid::Random() in Random() function in OHOS::bluetooth::Uuid
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/
H A Dsecurity_manager.h98 std::vector<uint8_t> Random(int32_t len);
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dsecurity_manager.cpp82 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 Dpreprocess_utils.cpp74 std::vector<uint8_t> randomDevices = DistributedData::Crypto::Random(ID_LEN, MINIMUM, MAXIMUM); in GenerateId()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/
H A Dsingle_store_impl_test.cpp31 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()

Completed in 12 milliseconds