We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec7788 commit 35f589dCopy full SHA for 35f589d
android/src/main/java/org/linusu/RNGetRandomValuesModule.java
@@ -27,8 +27,9 @@ public String getName() {
27
@ReactMethod(isBlockingSynchronousMethod = true)
28
public String getRandomBase64(int byteLength) throws NoSuchAlgorithmException {
29
byte[] data = new byte[byteLength];
30
+ SecureRandom random = new SecureRandom();
31
- SecureRandom.getInstanceStrong().nextBytes(data);
32
+ random.nextBytes(data);
33
34
return Base64.encodeToString(data, Base64.DEFAULT);
35
}
0 commit comments