https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID crypto.randomUUID should return a UUID. Edit: more links - https://nodejs.org/api/webcrypto.html#cryptogetrandomvaluestypedarray - https://nodejs.org/api/webcrypto.html#cryptorandomuuid
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID
crypto.randomUUID should return a UUID.
Edit: more links