Closed emclab closed 1 year ago
verify that global.crypto.getRandomValues does exist. But somehow ethersjs didn't see it.
verify that global.crypto.getRandomValues does exist. But somehow ethersjs didn't see it.
This seems like a problem with etherjs then and I'm afraid that I can't help you. Could you open an issue with them?
My React native (0.70) app has been using
react-native-get-random-values 1.8.0
withethersjs 5.7.0
on MacOS to generate private keys for longtime. but I just noticed an error from ethersjs about the secure random source unavailable:Error: no secure random source avaialble (operation="crypto.getRandomValues", code=UNSUPPORTED_OPERATION, version=random/5.7.0)
Here is the code:
What is missing here?