mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Undoing change to Math.random() for now, this creates a weird bug
This commit is contained in:
parent
b37498d5f6
commit
16343ffe70
@ -109,8 +109,7 @@ public class CordovaBridge {
|
||||
|
||||
/** Called by cordova.js to initialize the bridge. */
|
||||
int generateBridgeSecret() {
|
||||
SecureRandom randGen = new SecureRandom();
|
||||
expectedBridgeSecret = (int)(randGen.nextInt() * Integer.MAX_VALUE);
|
||||
expectedBridgeSecret = (int)(Math.random() * Integer.MAX_VALUE);
|
||||
return expectedBridgeSecret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user