LinusU/react-native-get-random-values

Disable "insecure random number generator" warning

343max opened this issue · 1 comments

Hi!

Is there a way to get rid of the "Using an insecure random number generator..." warning? I would like to get rid of it in our dev environment so people don't become numb to seeing warning popping up while working on the app.

Turns out it can be done by calling:

YellowBox.ignoreWarnings([
  'Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues',
])