⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
edwardwhite
Offline
Last seen:3 years 2 months ago
加入:2016-09-30 16:31
TRNG producing zero

Hello,

I want to use the TRNG to generate a UUID. It works in the majority of the code, however, when I want to regenerate a new code, I face some issues, listed below:
* It produces all zeroes from within my app_adv_nonconn_complete callback function.
* It also causes the system to freeze when called within my wakeup controller callback function

Additionally, I would like to know if rand() produces cryptographically secure numbers, as it uses a truly random number as it's seed?

Cheers,
Edd

Device:
LT_Dialog(未验证)
Hi Edd,

Hi Edd,
TRNG is recommended to be used only in the system startup because it gets data from RF signals which alters the RF settings in the process.

将会回来to you regarding if rand() is cryptographic secure.

LT_Dialog(未验证)
Hi Edd,

Hi Edd,
rand() function makes no guarantees if produced numbers are cryptographic ally secure.