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

never ending in random generator

I did some modification from radio test example. But I don't know why the function "rand8" never ending. In the function, rand8,

NRF_RNG->EVENTS_VALRDY = 0;
while (NRF_RNG->EVENTS_VALRDY == 0)
{
    // Do nothing.
}
return NRF_RNG->VALUE;

NRF_RNG->EVENTS_VALRDY is still 0 forever... Can anybody tell be why?? Thank you.

Related