Skip to content

修改随机数字符产生函数#6

Open
weiyigit wants to merge 2 commits into
ReadAirCN:mainfrom
weiyigit:main
Open

修改随机数字符产生函数#6
weiyigit wants to merge 2 commits into
ReadAirCN:mainfrom
weiyigit:main

Conversation

@weiyigit

Copy link
Copy Markdown

修改随机数字符产生函数
在生成随机数前面添加随机数种子,以TIM2计数器作为随机数种子,使随机数更随机一点。
(不能使用TIM1计数器,因为每次获取随机数的函数都是在TIM1回调里面执行的,所以几乎每次获取的计数值都是固定的)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant