Illusion of Randomness & Exploiting RNGs

Somdev Sangwan
Jul 23 · 4 min read

Illusion of uncertainty

How do computers generate random strings or numbers?

(previously_generated_number + current_time) * fixed_secret_number
1103515245 * seed + 24691

Enough theory, is it practically possible to predict pseudo-random data?

What if you don’t have access to the source code?


Somdev Sangwan

Written by

I make stuff, I break stuff and I make stuff that breaks stuff.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade