Searched refs:aMax (Results 1 – 5 of 5) sorted by relevance
/openthread-3.4.0/src/core/common/ |
D | random.cpp | 132 uint8_t GetUint8InRange(uint8_t aMin, uint8_t aMax) in GetUint8InRange() argument 134 OT_ASSERT(aMax > aMin); in GetUint8InRange() 136 return (aMin + (GetUint8() % (aMax - aMin))); in GetUint8InRange() 139 uint16_t GetUint16InRange(uint16_t aMin, uint16_t aMax) in GetUint16InRange() argument 141 OT_ASSERT(aMax > aMin); in GetUint16InRange() 142 return (aMin + (GetUint16() % (aMax - aMin))); in GetUint16InRange() 145 uint32_t GetUint32InRange(uint32_t aMin, uint32_t aMax) in GetUint32InRange() argument 147 OT_ASSERT(aMax > aMin); in GetUint32InRange() 148 return (aMin + (GetUint32() % (aMax - aMin))); in GetUint32InRange()
|
D | random.hpp | 140 uint8_t GetUint8InRange(uint8_t aMin, uint8_t aMax); 153 uint16_t GetUint16InRange(uint16_t aMin, uint16_t aMax); 166 uint32_t GetUint32InRange(uint32_t aMin, uint32_t aMax);
|
D | num_utils.hpp | 86 template <typename Type> Type Clamp(Type aValue, Type aMin, Type aMax) in Clamp() argument 90 return Min(value, aMax); in Clamp()
|
/openthread-3.4.0/src/core/api/ |
D | random_noncrypto_api.cpp | 46 uint8_t otRandomNonCryptoGetUint8InRange(uint8_t aMin, uint8_t aMax) in otRandomNonCryptoGetUint8InRange() argument 48 return Random::NonCrypto::GetUint8InRange(aMin, aMax); in otRandomNonCryptoGetUint8InRange() 51 uint16_t otRandomNonCryptoGetUint16InRange(uint16_t aMin, uint16_t aMax) in otRandomNonCryptoGetUint16InRange() argument 53 return Random::NonCrypto::GetUint16InRange(aMin, aMax); in otRandomNonCryptoGetUint16InRange() 56 uint32_t otRandomNonCryptoGetUint32InRange(uint32_t aMin, uint32_t aMax) in otRandomNonCryptoGetUint32InRange() argument 58 return Random::NonCrypto::GetUint32InRange(aMin, aMax); in otRandomNonCryptoGetUint32InRange()
|
/openthread-3.4.0/include/openthread/ |
D | random_noncrypto.h | 86 uint8_t otRandomNonCryptoGetUint8InRange(uint8_t aMin, uint8_t aMax); 98 uint16_t otRandomNonCryptoGetUint16InRange(uint16_t aMin, uint16_t aMax); 111 uint32_t otRandomNonCryptoGetUint32InRange(uint32_t aMin, uint32_t aMax);
|