![]() |
S115 SoftDevice for nRF54LS05 API documentation 10.0.0
|
| uint32_t sd_rand_application_vector_get | ( | uint8_t * | p_buff, |
| uint8_t | length ) |
#include <nrf_soc.h>
Generate NIST SP 800-90A compliant random numbers.
| [out] | p_buff | Pointer to uint8_t buffer for storing the bytes. |
| [in] | length | Number of bytes to place in p_buff. |
Generating secure randoms is expensive in terms of time and power, so if security is not required, a pseudorandom number generator should be used instead.
| NRF_SUCCESS | The requested bytes were written to p_buff. |
| NRF_ERROR_INVALID_ADDR | p_buff invalid. |
| NRF_ERROR_INVALID_STATE | The random number generator must be seeded using sd_rand_seed_set. |