cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

SaCo_2181666
New Contributor II

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
SaCo_2181666
New Contributor II

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

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