From 16343ffe7009dca68af77a53cebb90e76d6a9fe3 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 17 Oct 2014 13:52:33 -0700 Subject: [PATCH] Undoing change to Math.random() for now, this creates a weird bug --- framework/src/org/apache/cordova/CordovaBridge.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }