Skip to content

Commit

Permalink
fix: recursive call to getRandomValues
Browse files Browse the repository at this point in the history
  • Loading branch information
evensix-dev committed Feb 14, 2024
1 parent 1d1b61f commit 248e5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Expand Up @@ -10,5 +10,5 @@ export default function getRandomValues(typedArray) {
throw new Error('WebCrypto not available in this environment')
}

return getRandomValues(typedArray)
return crypto.getRandomValues(typedArray)
}

0 comments on commit 248e5a8

Please sign in to comment.