Embassy
nrf-softdevice-s113

Crates

git

Versions

default

Flavors

pub unsafe fn sd_rand_application_vector_get(p_buff: *mut u8, length: u8) -> u32
Expand description

@brief Get random bytes from the application pool.

@param[out] p_buff Pointer to unit8_t buffer for storing the bytes. @param[in] length Number of bytes to take from pool and place in p_buff.

@retval ::NRF_SUCCESS The requested bytes were written to p_buff. @retval ::NRF_ERROR_SOC_RAND_NOT_ENOUGH_VALUES No bytes were written to the buffer, because there were not enough bytes available.