A82: Re: Random routine - human reaction times
[Prev][Next][Index][Thread]
A82: Re: Random routine - human reaction times
Here's a simple way to handle this problem of not having a random enough
seed.
Have a high-density counter count continuously from the time the cards are
displayed to the time that you reveal the first card. When the first card
is revealed, THAT'S when you randomize them, using the counter as a seed.
Human reaction times, especially when measured with a very fast (Z80 is fast
enough) counter, are basically random.
PGP uses this fact when you generate a secret key for yourself - that's why
it asks you to type crap stuff. It's timing how long you take between each
keypress. A 1 millisecond difference in your typing speed will cause a
difference of 1000 (assuming a 1 mhz counter, which is about right in
multitasking environment) in the random numbers - that's extremely good.
PGP doesn't even care which keys your press (especially because that's
"human-random").
-- Barubary
Follow-Ups:
References: