News for hackers. Stuff that matters.
Re:How Do Computers Generate Random Numbers? by cm2187 on Monday September 14, 2020 @05:45AM (#24468376)
Is a hardware random number generator that would use environment or electrical sensors to generate noise expensive or hard to manufacture? I would assume this should be part of any standard motherboard given the importance of cryptography. Or does it create an attack vector?
Re:How Do Computers Generate Random Numbers? by Joker_vD on Monday September 14, 2020 @05:55AM (#24468441)
Why, of course, it's been there for almost 8 years already in Intel processors: https://en.wikipedia.org/wiki/RDRAND
Re:How Do Computers Generate Random Numbers? by jfindley on Monday September 14, 2020 @07:41AM (#24469001)
Cryptography doesn't depend on random numbers for its random seed. It depends on unpredictable numbers. These are not the same thing. As long as no-one can predict what the next number will be it doesn't matter how "random" they are. TFA is sufficiently vague it's unclear if the author understands this.

The more I read it, the more confused the article appears to be (e.g. mersenne twister is NOT a good example of a modern or high quality PRNG). For more about secure random numbers in Linux, I'd suggest reading [0].

0: https://buttondown.email/cryptography-dispatches/archive/cry...

Re:How Do Computers Generate Random Numbers? by UncleMeat on Monday September 14, 2020 @08:11AM (#24469155)
I wouldn't be so universal with this statement.

Some cryptosystems really do need uniform randomness (ECDSA) rather than just negligible probability of choosing values. Other cryptosystems depend on not reusing values, though the values could be predictable. Sometimes there are subtle shifts in these needs based on modes (AES/CBC vs AES/GCM is a good example).

Re:How Do Computers Generate Random Numbers? by jfindley on Monday September 14, 2020 @10:28AM (#24470539)
Thanks for the comment, yes I should have phrased that very differently.

What I was trying to say is that the kernel CSPRNG (exact mechanism depends on version) mixes together a bunch of things that aren't truly random from an information-theoretical perspective in order to produce uniform random output from the CSPRNG function - and that it doesn't actually matter that those sources aren't information-theoretically random. That'll teach me to comment in haste!

Re:How Do Computers Generate Random Numbers? by jlgaddis on Monday September 14, 2020 @06:10AM (#24468523)
There was an RNG on the i810 chipset ~20 years or so ago and several VIA chips had onboard RNGs as well.

Modern chips ranging from the one in the Raspberry Pi to Intel CPUs have them too.