Function openthread_sys::otPlatEntropyGet
source ยท pub unsafe extern "C" fn otPlatEntropyGet(
aOutput: *mut u8,
aOutputLength: u16,
) -> otError
Expand description
Fill buffer with entropy.
MUST be implemented using a true random number generator (TRNG).
@param[out] aOutput A pointer to where the true random values are placed. Must not be NULL. @param[in] aOutputLength Size of @p aBuffer.
@retval OT_ERROR_NONE Successfully filled @p aBuffer with true random values. @retval OT_ERROR_FAILED Failed to fill @p aBuffer with true random values. @retval OT_ERROR_INVALID_ARGS @p aBuffer was set to NULL.