Hi team,
Here's an issue from the customer may need your help:
The customer want to generate a random number of two bytes from the board. Is there any routine for reference? Thanks.
Best Regards,
Cherry
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi team,
Here's an issue from the customer may need your help:
The customer want to generate a random number of two bytes from the board. Is there any routine for reference? Thanks.
Best Regards,
Cherry
Hi Cherry,
The TRNG driver can be used to generate random numbers.
The aes key agreement example uses the TRNG and also does more.
https://dev.ti.com/tirex/explore/node?node=AKQVKqvd5tnYri5rebysEg__eCfARaV__LATEST
Here is the TRNG driver documentation with some examples.
https://dev.ti.com/tirex/content/simplelink_cc13x0_sdk_4_20_02_07/docs/tidrivers/doxygen/html/_t_r_n_g_8h.html
Regards,
Sid
Do they want a true random number or a Psuedo random number that will be repeatable from run to run.
I suggest developing with the pseudo random number and then switching to the TRNG for produciton.
You can just use the c function rand() for the PRNG.