Home
last modified time | relevance | path

Searched refs:randMax (Results 1 – 9 of 9) sorted by relevance

/foundation/distributedhardware/devicemanager/utils/src/
Ddm_random.cpp29 int32_t GenRandInt(int32_t randMin, int32_t randMax) in GenRandInt() argument
33 return (randMin + random() % (randMax - randMin)); in GenRandInt()
37 std::uniform_int_distribution<int> disRand(randMin, randMax); in GenRandInt()
42 int64_t GenRandLongLong(int64_t randMin, int64_t randMax) in GenRandLongLong() argument
46 std::uniform_int_distribution<long long> disRand(randMin, randMax); in GenRandLongLong()
/foundation/distributedhardware/devicemanager/utils/include/
Ddm_random.h23 int32_t GenRandInt(int32_t randMin, int32_t randMax);
24 int64_t GenRandLongLong(int64_t randMin, int64_t randMax);
/foundation/distributedhardware/devicemanager/ext/mini/utils/src/cipher/
Dencrypt_utils.cpp46 int32_t EncryptUtils::GenRandInt(int32_t randMin, int32_t randMax) in GenRandInt() argument
51 std::uniform_int_distribution<int> disRand(randMin, randMax); in GenRandInt()
54 return (randMin + random() % (randMax - randMin)); in GenRandInt()
58 int64_t EncryptUtils::GenRandLongLong(int64_t randMin, int64_t randMax) in GenRandLongLong() argument
62 std::uniform_int_distribution<long long> disRand(randMin, randMax); in GenRandLongLong()
/foundation/distributedhardware/devicemanager/ext/mini/utils/include/cipher/
Dencrypt_utils.h30 static int32_t GenRandInt(int32_t randMin, int32_t randMax);
31 static int64_t GenRandLongLong(int64_t randMin, int64_t randMax);
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/dispatch/
Dmessage_processing.cpp61 int32_t MessageProcessing::GenRandInt(int32_t randMin, int32_t randMax) in GenRandInt() argument
65 std::uniform_int_distribution<int> disRand(randMin, randMax); in GenRandInt()
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/test/unittest/common/common/
Ddistributeddb_tools_unit_test.h211 static int GetRandInt(const int randMin, const int randMax);
212 static int64_t GetRandInt64(const int64_t randMin, const int64_t randMax);
Ddistributeddb_tools_unit_test.cpp832 int DistributedDBToolsUnitTest::GetRandInt(const int randMin, const int randMax) in GetRandInt() argument
836 std::uniform_int_distribution<int> disRand(randMin, randMax); in GetRandInt()
840 int64_t DistributedDBToolsUnitTest::GetRandInt64(const int64_t randMin, const int64_t randMax) in GetRandInt64() argument
844 std::uniform_int_distribution<int64_t> disRand(randMin, randMax); in GetRandInt64()
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/test/common/distributeddb/src/
Ddistributeddb_data_generator.cpp324 int GetRandInt(const int randMin, const int randMax) in GetRandInt() argument
328 std::uniform_int_distribution<int> disRand(randMin, randMax); in GetRandInt()
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/test/common/distributeddb/include/
Ddistributeddb_data_generator.h551 int GetRandInt(const int randMin, const int randMax);