How do I generate random numbers in a microcontroller efficiently?

前端 未结 8 2088
梦毁少年i
梦毁少年i 2021-02-15 18:14

How do I generate random numbers in a microcontroller efficiently? Are there any general guidelines or a particular fast method?

8条回答
  •  一整个雨季
    2021-02-15 18:59

    Reading the timer and xoring/nanding/etc it with a series of bits will give a semi random to the user, as the timing between events is likely to be enough apart that the user won't really be able to tell the correlation with the timer.

提交回复
热议问题