Comment

Comment by pseudosavant

Funny to see this coming up again after all these years. I was the person who reported this issue to the Chromium team, 3 years before that blog posts. They marked it as won't fix, multiple times (other people reported it too), before they fixed it. Safari, Firefox, and IE were all already using more robust PRNGs for Math.random() that did not exhibit this issue.

https://stackoverflow.com/questions/9550796/why-is-google-ch... https://issues.chromium.org/issues/40404440

I came across it because of some tests I had for a statistics library I was working on. There was a test that created an array with 100k random values that shouldn't have had any collisions, but I consistently got multiple collisions, only in Chrome.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton