AnsweredAssumed Answered

KW41Z Random Number Generation

Question asked by Nick McKendree on Apr 17, 2018
Latest reply on Apr 24, 2018 by Estephania Martinez

I am using the KW41Z with the 802.15.4 library and NXP framework. I am finding multiple random number generation functions in the provided code but I have not seen documentation or comments that describe the differences.

 

In SecLib, there is SecLib_get_random() which returns a 32 bit number. 

uint32_t SecLib_get_random(void)

 

In RNG framework there are three functions:

RNG_HwGetRandomNo: uses TRNG_GetRandomData, which is hardware

RNG_GetRandomNo: uses SecLib_get_random

RNG_GetPseudoRandomNo: pseudo random number generation

 

What is the difference between SecLib_get_random and RNG_HwGetRandomNo? Does SecLib_get_random use hardware or is it is secure pseudo number generator?

 

Outcomes