#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.

Maybe I could use a #ParallelPort #sampler cartridge and hope its noise floor isn't too good? Allocate memory without clearing and hash it before using it (would that survive a cold boot?).

@mathr AFAIK Linux can use IO timings, but if the user isn't using the input peripherals then I'm not sure what hardware you could use. Maybe the least significant bits of HDD timing are random enough???

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.

@csepp @mathr


@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.

· · brutaldon · 0 · 0 · 1
Sign in to participate in the conversation

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.