diff --git a/framework/src/org/apache/cordova/CordovaBridge.java b/framework/src/org/apache/cordova/CordovaBridge.java index a6ebebbd..c007db36 100644 --- a/framework/src/org/apache/cordova/CordovaBridge.java +++ b/framework/src/org/apache/cordova/CordovaBridge.java @@ -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; }