How to use a strong random source on Expo
See original GitHub issueI’m trying to use ethers.js inside Expo, but whatever I do it keeps telling me:
WARNING: Missing strong random number source; using weak randomBytes
Is there any way to use a strong random source. I know expo has expo-random
, but I see no clear way of making ethers.js use that.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Random - Expo Documentation
expo -random provides a native interface for creating strong random bytes. ... Generates completely random bytes using native implementations.
Read more >How to use the expo-random.getRandomBytesAsync function ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >React Native Synchronous Secure Random Number Generation
My solution does involve using the react-native-randombytes library. ... use the asynchronous CSPRNG functionality to seed the SJCL random ...
Read more >react-native-get-random-values v1.8.0 - npm.io
If you use the Expo managed workflow you will see "CocoaPods is not ... getRandomValues() method lets you get cryptographically strong random values....
Read more >react-native-get-random-values - npm
Installation. npm install react-native-get-random-values npx pod-install. If you use the Expo ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks, that worked 🎉
for the next person trying to get this to work:
Thanks! I’ll add that in the docs for Expo. 😃