-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto.getRandomValues is not defined #108
Comments
I have no android, you will need to debug the issue yourself |
Can you give me some suggestions as to what might be wrong? |
I think we have changed the logic lf checking if crypto exists. So, see how it works in 2.1 and diff with 2.2. Maybe it’s related to crypto.subtle |
see if reverting 57c1d9e helps |
Can confirm after reverting this commit it works as expected again.
Alternatively, I see that there are checks in place where |
I assume you are using noble hashes to get sync methods? |
On Android I get a
crypto.getRandomValues
is not defined error.iOS seems to work fine.The error started when I upgraded from 2.1.0 to 2.2.0.
With 2.1.0 everything is working fine.
As for the environment and setup
I am on the latest Expo SDK (52)
I have the
import "react-native-get-random-values";
before any call to@noble
packagesAnd the polyfills are used
Dependencies versions:
react-native-get-random-values
: 1.11.0@noble/hashes
: 1.7.0The text was updated successfully, but these errors were encountered: