3 ms·
Use crypto.randomUUID https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID https://developer.mozilla.org/en-US/docs/Web/API/Crypto/rand... instead
by gabrielsroka 1mo ago
Use crypto.randomUUID https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID https://developer.mozilla.org/en-US/docs/Web/API/Crypto/rand... instead of Math.random
- gr3ggg 27d agoFixed and deployed — it now uses crypto.randomUUID() with a getRandomValues fallback for older browsers. Worse than the bug itself: the page claimed it generated UUIDs "with the browser's cryptographic random source", which simply wasn't true. Thanks for catching it.