/* Elliptic Curve Cryptography Interface. 
The information contained herein is confidential property of Nordic Semiconductor. The use, copying, transfer or disclosure of such information is prohibited except by express written agreement with Nordic Semiconductor.  */
static int ecc_rng(uint8_t *dest, unsigned size)
/* Elliptic Curve Cryptography Interface. 
The information contained herein is confidential property of Nordic Semiconductor. The use, copying, transfer or disclosure of such information is prohibited except by express written agreement with Nordic Semiconductor.  */
static int ecc_rng(uint8_t *dest, unsigned size)
{
    uint32_t errcode;
    errcode = nrf_drv_rng_block_rand(dest, (uint32_t) size);
    return errcode == NRF_SUCCESS ? 1 : 0;
}