Of course not. Instead you need to have a reasonable function for
determine how much randomness you can expect. Perhaps you need to have
a trigger level: don't add randomness unless the prevous keystroke was
at least N ms separated, unless we have a high-resolution counter.
Why don't we use the TSC on other architectures that have them, e.g.
Alpha?
>
> Sources we use for gaining randomness are not much random at all, so I
> think adding i820 [which was _designed_ as random generator, unlike
> keyboard, mouse, and network card!] as yet another randomness source
> should be safe.
>
Yes, this is totally the right thing to do.
>
> People seem to care for NSA adding hooks. But it would be certainly
> easier to add other hooks [like switch me to ring0 when I do this 8
> byte sequence of instructions]. People seem to run statistic tests on
> poor i820 rng, but noone runs the same test on keyboard...
>
Note that if you're using an i820 you're using an x86, and the x86 has
the TSC so that sampling events can derive quite real randomness,
because the timing resolution is so high.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/