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
  • sd_rand_application_bytes_available_get()
    sd_rand_application_pool_capacity_get()
    sd_rand_application_vector_get()
    

    They're documented under the SoC Library API -> Functions

  • Hi, it's really unclear to me how to use the three sd methods to get random data. For instance, when does the "pool" get filled with random data? What should the application do in the event that sd_rand_application_bytes_available_get returns a value lower than the number of random bytes which are needed at that moment in time - does the application have to try again later? In some situations it won't be possible/easy (depending on the code etc.) for the application to postpone thegetting of random bytes.

    I'd really appreciate any help. I haven't been able to find any documentation on how to use these methods...

Reply
  • Hi, it's really unclear to me how to use the three sd methods to get random data. For instance, when does the "pool" get filled with random data? What should the application do in the event that sd_rand_application_bytes_available_get returns a value lower than the number of random bytes which are needed at that moment in time - does the application have to try again later? In some situations it won't be possible/easy (depending on the code etc.) for the application to postpone thegetting of random bytes.

    I'd really appreciate any help. I haven't been able to find any documentation on how to use these methods...

Children
No Data
Related