Comment by sublinear 1 day ago > We're using this: https://www.npmjs.com/package/uuidWhy? There's a built-in for this.https://nodejs.org/api/crypto.html#cryptorandomuuidoptions 2 comments sublinear Reply OptionOfTÂ 21 hours ago That's what the package uses. And if `crypto.randomUUID()` doesn't exist, it falls back to `crypto.getRandomValues()`, which per the documentation isn't AS strong:https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getR...So by using the package you actually lose visibility of cases where `crypto.randomUUID()` would fail.
OptionOfTÂ 21 hours ago That's what the package uses. And if `crypto.randomUUID()` doesn't exist, it falls back to `crypto.getRandomValues()`, which per the documentation isn't AS strong:https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getR...So by using the package you actually lose visibility of cases where `crypto.randomUUID()` would fail.
That's what the package uses. And if `crypto.randomUUID()` doesn't exist, it falls back to `crypto.getRandomValues()`, which per the documentation isn't AS strong:
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getR...
So by using the package you actually lose visibility of cases where `crypto.randomUUID()` would fail.