Searched refs:randMax (Results 1 – 9 of 9) sorted by relevance
/foundation/distributedhardware/devicemanager/utils/src/ |
D | dm_random.cpp | 29 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/ |
D | dm_random.h | 23 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/ |
D | encrypt_utils.cpp | 46 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/ |
D | encrypt_utils.h | 30 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/ |
D | message_processing.cpp | 61 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/ |
D | distributeddb_tools_unit_test.h | 211 static int GetRandInt(const int randMin, const int randMax); 212 static int64_t GetRandInt64(const int64_t randMin, const int64_t randMax);
|
D | distributeddb_tools_unit_test.cpp | 832 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/ |
D | distributeddb_data_generator.cpp | 324 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/ |
D | distributeddb_data_generator.h | 551 int GetRandInt(const int randMin, const int randMax);
|