Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Smart Bluetooth Forum Discussions

SaCo_2181666
Level 1
First like received
Level 1

Hi all,

Does BCM20736S support a Random Number Generator? If so, which Wiced API can be used to create a random number?

Regards,

Sabino

0 Likes
1 Solution
3 Replies
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator
SaCo_2181666
Level 1
First like received
Level 1

Hi AnjanaM_61

Thanks for your reply. Yes, I find your links useful.

Please, could you confirm that if I do:

UINT32 rand_nums[4];

ulp_rand(rand_num, 4);

this single call will generate 4 random UINT32 numbers at once?

Thanks,

Sabino

0 Likes
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hi SaCo_2181666

I have seen the implementation only as below :

UINT32 rand1, rand2, init_value, toggle_value;

static ref_clock = 0;

ulp_rand(&rand1, 1);

ulp_rand(&rand2, 1);

Refer to example pwm_tones in WICED SMART ( /WICED-Smart-SDK/Apps/pwm_tones )

Not sure if any other value to the second parameter works .

Thanks,

Anjana