refactor: Stop suppressing un-needed TruelyRandom lints (#1046)

This commit is contained in:
Norman Breau 2020-08-11 10:13:33 -03:00 committed by GitHub
parent a45217e6b9
commit 565106fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,6 @@ public class CordovaBridge {
/** Called by cordova.js to initialize the bridge. */ /** Called by cordova.js to initialize the bridge. */
//On old Androids SecureRandom isn't really secure, this is the least of your problems if //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 //you're running Android 4.3 and below in 2017
@SuppressLint("TrulyRandom")
int generateBridgeSecret() { int generateBridgeSecret() {
SecureRandom randGen = new SecureRandom(); SecureRandom randGen = new SecureRandom();
expectedBridgeSecret = randGen.nextInt(Integer.MAX_VALUE); expectedBridgeSecret = randGen.nextInt(Integer.MAX_VALUE);