[−][src]Function openthread_sys::otPlatEntropyGet
pub unsafe extern "C" fn otPlatEntropyGet(
aOutput: *mut u8,
aOutputLength: u16
) -> otError
Fill buffer with entropy.
This function 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.