cancel
Showing results for 
Search instead for 
Did you mean: 

Generated random number is negative, but I expect it to be positive

demir
Senior II

Hi, 

I am using HAL_RNG_GenerateRandomNumber API to generate random number between 0 to  4294967295, but when I debug the code, I see that the random number takes negative number.

Could anyone please help me with this?

Thanks.

 

 

demir_0-1707056133754.png

 

1 REPLY 1
TDK
Guru

Just an IDE bug. You can ignore it, or right click and view it as hex or something else.

If you feel a post has answered your question, please click "Accept as Solution".