RNG on BCM20736S

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

cross mob
SaCo_2181666
Level 1
Level 1
First like received

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
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA
3 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

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

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