Predicting Math.random()
summary
Explains how Math.random() is implemented in Node.js, naming the pseudorandom number generation algorithm used and how PRNGs work. Demonstrates concrete methods and code examples for predicting values produced by Math.random(), analyzing each method with real code.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:28Problem setup
- 4:22Math.random() internals
- 12:26Xorshift128+ analysis
- 18:38Linear equations solution
- 23:20JavaScript implementation
- 27:51Node.js 8.13 pitfalls
- 30:14Security conclusions
- 31:19Q&A
related talks
14mlol im so random!
01h 30mRandom
29mMastering Cryptography with Node's crypto module
41mCybersecurity and random number generators
26mJavascript Crypto. Ugly duckling with good reason?
19mRNG and Me: A Peek Behind The Random Number Generator Curtain
52mPredicting Random Numbers in Ethereum Smart Contracts
51mCybersecurity and Random Number Generators
