Y
Hacker News
new
|
ask
|
show
|
jobs
by
jetpm
4002 days ago
I'm curious, why is Math.random() not OK? Does it have a bad seed?
1 comments
mykii
4002 days ago
http://ifsec.blogspot.fr/2012/05/cross-domain-mathrandom-pre...
link
jetpm
4002 days ago
awesome and scary at the same time. awescary. If I understood it correctly this should work for nodejs servers as well, for example when they create random ids for users or urls.
link
mykii
4002 days ago
except that nodejs generally uses crypto.randomBytes() and the Google V8 seems to have a strongest Math.random() but the approach is not clear
link