S115 SoftDevice for nRF54LS05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_rand_seed_set()

uint32_t sd_rand_seed_set ( uint8_t p_seed[(32)])

#include <nrf_soc.h>

Seed the random number generator.

Parameters
[in]p_seedPointer to array of SD_RAND_SEED_SIZE bytes of entropy.

The entropy source must be NIST SP 800-90B compliant.

Must be called in reply to NRF_EVT_RAND_SEED_REQUEST. Can also be called without a request from the SoftDevice.

Return values
NRF_SUCCESSThe random number generator was seeded.
NRF_ERROR_INVALID_ADDRp_seed invalid.