31 Mar 2026 • 05 Mins read
I Predicted Firefox's Math.random(). Don't Use It for OTPs.
I took three Math.random() outputs from Firefox, recovered the internal PRNG state using Z3, and predicted the next values exactly. This is why OTPs must never use Math.random() — it is not random in any security sense.
Continue Reading