riot_sys::bindgen

Function hwrng_read

Source
pub unsafe extern "C" fn hwrng_read(buf: *mut c_void, num: c_uint)
Expand description

@brief Read N bytes of random data from the hardware device

The read function should power on the HWRNG MCU peripheral, read the given number of random bytes and than put the peripheral back to sleep.

@param[in] buf destination buffer to write the bytes to @param[in] num number of bytes to get from device