#HowTo get #entropy for #PRNG #PseudoRandomNumberGeneration on old hardware? #nondeterministic #RetroComputing
My #Amiga #A500 running my software makes the same sounds in the same order when powered on, when I really want it to be different each time. I seed based on `time()` but either libc from VBCC does not support it or the machine has no battery-backed real time clock or both.
Yep timing from any inputs and from rotating media is a source of entropy. Just hash everything you've got: you can't make the situation worse by doing that. Uncleared memory too: again, doesn't matter if it happens to be predictable, the hash isn't harmed.
If you have analogue inputs, then the input values are potential entropy sources too, whether or not anything is connected.
@EdS @mathr Came across this while researching something we learned on an unrelated class:
Useful if you wanna make sure your random bits aren't biased.
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko