~/talk

Predicting Math.random()

TalkinRussianat HolyJS 2024 Autumn · 2024-11-07..11-15· [security, nodejs]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:28Problem setup
  3. 4:22Math.random() internals
  4. 12:26Xorshift128+ analysis
  5. 18:38Linear equations solution
  6. 23:20JavaScript implementation
  7. 27:51Node.js 8.13 pitfalls
  8. 30:14Security conclusions
  9. 31:19Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.