diff --git a/doc/nrf-bm/release_notes/release_notes_changelog.rst b/doc/nrf-bm/release_notes/release_notes_changelog.rst index e19bea6259..7a34a76343 100644 --- a/doc/nrf-bm/release_notes/release_notes_changelog.rst +++ b/doc/nrf-bm/release_notes/release_notes_changelog.rst @@ -28,6 +28,7 @@ SoftDevice Handler ================== * Updated the system initialization to initialize on application level. +* Updated the entropy source to use the CRACEN true random number generator instead of the CRACEN pseudorandom number generator. Boards ====== diff --git a/subsys/softdevice_handler/nrf_sdh_soc.c b/subsys/softdevice_handler/nrf_sdh_soc.c index 377dba60fa..6a03bc5f26 100644 --- a/subsys/softdevice_handler/nrf_sdh_soc.c +++ b/subsys/softdevice_handler/nrf_sdh_soc.c @@ -10,6 +10,7 @@ #include #include #include +#include #include LOG_MODULE_DECLARE(nrf_sdh, CONFIG_NRF_SDH_LOG_LEVEL); @@ -48,7 +49,7 @@ static void softdevice_rng_seed(void) psa_status_t status; uint8_t seed[SD_RAND_SEED_SIZE]; - status = psa_generate_random(seed, sizeof(seed)); + status = cracen_get_trng(seed, sizeof(seed)); if (status == PSA_SUCCESS) { err = sd_rand_seed_set(seed); memset(seed, 0, sizeof(seed));