openthread_sys

Function otRandomNonCryptoGetUint32InRange

Source
pub unsafe extern "C" fn otRandomNonCryptoGetUint32InRange(
    aMin: u32,
    aMax: u32,
) -> u32
Expand description

Generates and returns a random uint32_t value within a given range [aMin, aMax).

@note The returned random value can include the @p aMin value but excludes the @p aMax.

@param[in] aMin A minimum value (this value can be included in returned random result). @param[in] aMax A maximum value (this value is excluded from returned random result).

@returns A random uint32_t value in the given range (i.e., aMin <= random value < aMax).