diff --git a/source/types/uuid.mjs b/source/types/uuid.mjs index 9e140fae2e59fe0121743cbf7b46a5ba39462dfe..a1243131e5b4eb08e3b54eaebb3f77808095b0ef 100644 --- a/source/types/uuid.mjs +++ b/source/types/uuid.mjs @@ -78,6 +78,6 @@ function createWithRandom() { function createWithCrypto() { const crypt = getGlobalObject("crypto"); if (!isObject(crypt)) return; - if (typeof crypt?.["randomUUID"]) return; + if (typeof crypt?.["randomUUID"] !== "function") return; return crypt.randomUUID(); }