mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
refactor: Stop suppressing un-needed TruelyRandom lints (#1046)
This commit is contained in:
parent
a45217e6b9
commit
565106fc1f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user