riot_sys::bindgen

Function random_init

Source
pub unsafe extern "C" fn random_init(s: u32)
Expand description

@brief initializes PRNG with a seed

Users only need to call this if the auto_init_random module is disabled, or provides insufficient quality entropy.

@warning Currently, the random module uses a global state => multiple calls to @ref random_init will reset the existing state of the PRNG.

@param s seed for the PRNG