openthread_sys

Function otRandomNonCryptoGetUint16InRange

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

Generates and returns a random uint16_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 uint16_t value in the given range (i.e., aMin <= random value < aMax).