Why is it so difficult to program a true random number generator? [closed]

StackOverflow https://stackoverflow.com/questions/14420763

  •  16-01-2022
  •  | 
  •  

سؤال

I don't understand why a PRNG is easier to program than a true RNG. Shouldn't a typical processor make short work of producing a truly random number?

هل كانت مفيدة؟

المحلول

Computers are deterministic machines, given the same input, code included, they will produce the same result. To get true randomness you need to introduce something random from the real world, like the time or cosmic rays or something else that you can't predict.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top