Function bt_rand

Source
pub unsafe extern "C" fn bt_rand(
    buf: *mut c_void,
    len: usize,
) -> c_int
Expand description

@brief Generate random data.

A random number generation helper which utilizes the Bluetooth controller’s own RNG.

@param buf Buffer to insert the random data @param len Length of random data to generate

@return Zero on success or error code otherwise, positive in case of protocol error or negative (POSIX) in case of stack internal error