Undoing change to Math.random() for now, this creates a weird bug

This commit is contained in:
Joe Bowser 2014-10-17 13:52:33 -07:00
parent b37498d5f6
commit 16343ffe70

View File

@ -109,8 +109,7 @@ public class CordovaBridge {
/** Called by cordova.js to initialize the bridge. */ /** Called by cordova.js to initialize the bridge. */
int generateBridgeSecret() { int generateBridgeSecret() {
SecureRandom randGen = new SecureRandom(); expectedBridgeSecret = (int)(Math.random() * Integer.MAX_VALUE);
expectedBridgeSecret = (int)(randGen.nextInt() * Integer.MAX_VALUE);
return expectedBridgeSecret; return expectedBridgeSecret;
} }