/* Function for configuring all peripherals used in this example.  */
static void init(void)
/* Function for configuring all peripherals used in this example.  */
static void init(void)
{
    NRF_RNG->TASKS_START = 1;
    NRF_CLOCK->EVENTS_HFCLKSTARTED  = 0;
    NRF_CLOCK->TASKS_HFCLKSTART     = 1;
    while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0)
    {
    }
}