riot_sys::bindgen

Function hwrng_init

Source
pub unsafe extern "C" fn hwrng_init()
Expand description

@brief Initialize the hardware random number generator

On some platforms, the random number generator needs some global initialization before it can be used. This should happen in this function if it would impose too much overhead to do this every time the hwrng_read function is called. The device should however be put into power-off mode after initialization and will be powered on and of when hwrng_read is called.