- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
Does BCM20736S support a Random Number Generator? If so, which Wiced API can be used to create a random number?
Regards,
Sabino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sabino,
Please check if this will be helpful:
Does the 20736 have a "hardware" random number generator?
Re: how to get a random number with the sdk?
Regards,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sabino,
Please check if this will be helpful:
Does the 20736 have a "hardware" random number generator?
Re: how to get a random number with the sdk?
Regards,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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