Currently I am looking into getting some randomness into the tiny system.
I quickly found out that the randomness I used in the program wasn't that at all.
Of course it is very logical that a system that is designed to specifically do a finite type of things, and -not something else- just indeed does the finite type of things and that's it. In that way you won't get bugs, it is designed to be static, so it will be static, very handy. To make a static system do something unstatic (is that a word? ok "dynamic"), like generating a real random number is a little harder.
Even so when using an avr.
Reading a bit on randomness using an avr, I landed on a few pages that describe this problem, questions were asked and answered (as this is not new, but it is for me) and I found some solutions that people have made in the past for this problem.
As per usual, I compiled a list of pages (file: listofpages.txt) that I visited and found some code to play with (see docs-link on the left).
I found getting some randomness into the system by reading the ADC a couple of times, and using the results as a seed quite interesting.
As for my solution to this problem, I am going to test reading some static on the ADC on another avr (with serial, so I can printf some characters) to see if that yields significant results.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.