Home
last modified time | relevance | path

Searched refs:aMax (Results 1 – 3 of 3) sorted by relevance

/openthread-2.7.6/src/core/common/
Drandom.hpp90 inline uint8_t GetUint8InRange(uint8_t aMin, uint8_t aMax) in GetUint8InRange() argument
92 OT_ASSERT(aMax > aMin); in GetUint8InRange()
93 return (aMin + (GetUint8() % (aMax - aMin))); in GetUint8InRange()
106 inline uint16_t GetUint16InRange(uint16_t aMin, uint16_t aMax) in GetUint16InRange() argument
108 OT_ASSERT(aMax > aMin); in GetUint16InRange()
109 return (aMin + (GetUint16() % (aMax - aMin))); in GetUint16InRange()
123 inline uint32_t GetUint32InRange(uint32_t aMin, uint32_t aMax) in GetUint32InRange() argument
125 OT_ASSERT(aMax > aMin); in GetUint32InRange()
126 return (aMin + (GetUint32() % (aMax - aMin))); in GetUint32InRange()
/openthread-2.7.6/src/core/api/
Drandom_noncrypto_api.cpp55 uint8_t otRandomNonCryptoGetUint8InRange(uint8_t aMin, uint8_t aMax) in otRandomNonCryptoGetUint8InRange() argument
57 return Random::NonCrypto::GetUint8InRange(aMin, aMax); in otRandomNonCryptoGetUint8InRange()
60 uint16_t otRandomNonCryptoGetUint16InRange(uint16_t aMin, uint16_t aMax) in otRandomNonCryptoGetUint16InRange() argument
62 return Random::NonCrypto::GetUint16InRange(aMin, aMax); in otRandomNonCryptoGetUint16InRange()
65 uint32_t otRandomNonCryptoGetUint32InRange(uint32_t aMin, uint32_t aMax) in otRandomNonCryptoGetUint32InRange() argument
67 return Random::NonCrypto::GetUint32InRange(aMin, aMax); in otRandomNonCryptoGetUint32InRange()
/openthread-2.7.6/include/openthread/
Drandom_noncrypto.h86 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);