dcodeIO / bcrypt.js

Optimized bcrypt in plain JavaScript with zero dependencies.
Other
3.51k stars 267 forks source link

Using Math.random is not cryptographically secure! Use bcrypt.setRandomFallback to set a PRNG. #110

Open khuang-citylift opened 4 years ago

khuang-citylift commented 4 years ago

Hi guys,

When using react-native-bcrypt, I get the warning: "Using Math.random is not cryptographically secure! Use bcrypt.setRandomFallback to set a PRNG."

It looks the warning comes from the import line. Is there a way to suppress this or to get rid of this warning every time I build?

Thanks, Kevin

jjarcik commented 3 years ago

Hi Kevin, did You solve this issue?

khuang-citylift commented 3 years ago

Hi Kevin, did You solve this issue?

No, I have not. This issue persists in SDK 39.0.0 still.