MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/3vjlde/microsoft_edges_javascript_engine_to_go_opensource/cxo7i6s/?context=3
r/javascript • u/clarle • Dec 05 '15
84 comments sorted by
View all comments
Show parent comments
7
New question: what RNG does your implementation of Math.random() use?
8 u/bterlson_ @bterlson Dec 05 '15 It's decent quality, if that's what you're asking. I don't know that it has a name per se. One of our devs recently posted more info here. 3 u/ivosaurus Dec 05 '15 Decent, as in the same one that was in use before 2002?If it's indeed the same as Java's, then it's just a LCG. That is decidedly not decent quality. 12 u/bterlson_ @bterlson Dec 05 '15 "Decent" of course depends on use case. Math.random is decidedly NOT decent if you are doing any sort of cryptography, for example. 1 u/ivosaurus Dec 06 '15 Nope. Just statistically decent, which LCGs fail pretty hard.
8
It's decent quality, if that's what you're asking. I don't know that it has a name per se. One of our devs recently posted more info here.
3 u/ivosaurus Dec 05 '15 Decent, as in the same one that was in use before 2002?If it's indeed the same as Java's, then it's just a LCG. That is decidedly not decent quality. 12 u/bterlson_ @bterlson Dec 05 '15 "Decent" of course depends on use case. Math.random is decidedly NOT decent if you are doing any sort of cryptography, for example. 1 u/ivosaurus Dec 06 '15 Nope. Just statistically decent, which LCGs fail pretty hard.
3
Decent, as in the same one that was in use before 2002?
If it's indeed the same as Java's, then it's just a LCG. That is decidedly not decent quality.
12 u/bterlson_ @bterlson Dec 05 '15 "Decent" of course depends on use case. Math.random is decidedly NOT decent if you are doing any sort of cryptography, for example. 1 u/ivosaurus Dec 06 '15 Nope. Just statistically decent, which LCGs fail pretty hard.
12
"Decent" of course depends on use case. Math.random is decidedly NOT decent if you are doing any sort of cryptography, for example.
1 u/ivosaurus Dec 06 '15 Nope. Just statistically decent, which LCGs fail pretty hard.
1
Nope. Just statistically decent, which LCGs fail pretty hard.
7
u/ivosaurus Dec 05 '15
New question: what RNG does your implementation of Math.random() use?