Use crypto.randomUUID https://developer.mozilla.org/en-US/docs/Web/API/Crypto/rand... instead of Math.random
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.