2

I recently heard that in Linux, /dev/random and /dev/urandom are pseudo random number generators but not true random number generator.

So I am curious to know the difference between pseudo & true random number? In other words What is the difference between pseudo-randomness & true-randomness?

Pandya
  • 121
  • 4

1 Answers1

2

Most random numbers are in fact pseudo-random: they use a seed that is fed to a perfectly deterministic algorithm which can then generate series of numbers which are periodic but with a very large and complicated period so they usually appear random.

This has drawbacks of course since it's not really random, but also advantages, among which is reproducibility: if you store the seed, using this seed again will give you the exact same list of "random" numbers...

Here are a few links as well as another to a source of real random numbers

Silmathoron
  • 151
  • 3
  • 2
    Conversely, for certain applications (generation of cryptographic keys, picking winning lottery numbers, etc.) it's very important that the output of a random number generator be unpredictable. In cryptographic applications it's common to combine actual physically random numbers with a pseudorandom number generator to produce unpredicatable output. – Brian Borchers Apr 26 '16 at 02:24