31 Mar 2026 • 06 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