Skip to content

Commit

Permalink
refactor: Stop suppressing un-needed TruelyRandom lints (apache#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek authored Aug 11, 2020
1 parent a45217e commit 565106f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion framework/src/org/apache/cordova/CordovaBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public boolean isSecretEstablished() {
/** Called by cordova.js to initialize the bridge. */
//On old Androids SecureRandom isn't really secure, this is the least of your problems if
//you're running Android 4.3 and below in 2017
@SuppressLint("TrulyRandom")
int generateBridgeSecret() {
SecureRandom randGen = new SecureRandom();
expectedBridgeSecret = randGen.nextInt(Integer.MAX_VALUE);
Expand Down

0 comments on commit 565106f

Please sign in to comment.