This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

non-random behaviour

Hi,

I'm trying to generate some time variant values for testing purposes... rand() always returns 1447534768! This is in the proximity app FWIW.

So, I thought I would use the hardware RNG, looking at the example rng_example. Now:


NRF_RNG->TASKS_START=1;
...
NRF_RNG->EVENTS_VALRDY=0;
while(NRF_RNG->EVENTS_VALRDY==0) {}

Just waits for ever?

Alan

Related