Re:Math.random in V8 is broken
by seanwilson on Friday November 20, 2015 @10:56PM
(#10605503)
There's something to be said about having sensible defaults that prevent common mistakes though. Everyone makes mistakes.
[ Parent
| on HN ]
True. But every language has gone through this issue. Node is particularly vulnerable to weak prng seeding due to relying on forking to support multiple processes. Am I that old and grumpy to expect people to be aware of the history here?
Re:Math.random in V8 is broken
by seanwilson on Saturday November 21, 2015 @04:16AM
(#10606276)
I think the size of this thread as well as the existence of blog posts like this means it's a mistake that's always going to be repeated. There's way too many programming gotchas to expect people to keep track of them all. Language support to avoid classes of mistakes is a great idea to me e.g. such as having a good random algorithm by default and a UUID library.