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

random number genarator with softdevice

Hi,

I would like to use Random number generator when soft device enabled. I have seen random generator example, but I can not use the same when soft device is enabled. I didn't find any sample code with SD.

could someone please provide some info in this regard?

Thanking you very much,

Regards, Raju

Parents
  • Point taken with regard to documentation on the functionality.

    There's a pool of random numbers available for the application. The size of this pool can be found by using sd_rand_application_pool_capacity_get(). The RNG unit is a bit slow, compared to a lot of computing timing, so the check how many bytes are available in the pool, you use: sd_rand_application_bytes_available_get().

    To actually get random numbers out of the pool, you use the last function: sd_rand_application_vector_get().

    developer.nordicsemi.com/.../a01075.html

Reply
  • Point taken with regard to documentation on the functionality.

    There's a pool of random numbers available for the application. The size of this pool can be found by using sd_rand_application_pool_capacity_get(). The RNG unit is a bit slow, compared to a lot of computing timing, so the check how many bytes are available in the pool, you use: sd_rand_application_bytes_available_get().

    To actually get random numbers out of the pool, you use the last function: sd_rand_application_vector_get().

    developer.nordicsemi.com/.../a01075.html

Children
No Data