This morning I couldn’t sleep, so I remembered something interesting, computer generated random numbers are not really random numbers, or not strictly speaking.
But first, let’s talk about Deterministic Systems versus Stochastic Systems.
In mathematics, computer science and physics, a deterministic system is a system in which no randomness is involved in the development of future states of the system. A deterministic model will thus always produce the same output from a given starting condition or initial state.
So how does this affect or why do I say that computer generated random numbers are not strictly random?…
Math.random() function that returns a floating-point number in the range 0 to less than 1 (inclusive of 0, but not 1).
How can we generate true random numbers? using quantum mechanics. How? make measurements on something that behaves randomly and from there we can extract random numbers.
But, why is this important? Because we are software developers (some of us, I guess), and we don’t want our applications to be hacked.
As Steve Ward (Professor of Computer Science and Engineering at MIT’s Computer Science and Artificial Intelligence Laboratory) says:
Truly random numbers make such reverse engineering impossible
This is only a brief introduction and gentle, the topic is much more complex than it seems. Especially when we introduce ourselves a little more to the world of cryptography.
About Andrés Bedoya
Learn more about Andrés Bedoya