cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [5/8] git commit: Undoing change to Math.random() for now, this creates a weird bug
Date Mon, 27 Oct 2014 21:24:56 GMT
Undoing change to Math.random() for now, this creates a weird bug


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/5244afaa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/5244afaa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/5244afaa

Branch: refs/heads/master
Commit: 5244afaa4dfdfbcdc7ebe03176301da2aa1df880
Parents: dd92376
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Oct 17 13:52:33 2014 -0700
Committer: Prabhjot Singh <prabhjos@amazon.com>
Committed: Mon Oct 20 10:06:06 2014 +0530

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaBridge.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/5244afaa/framework/src/org/apache/cordova/CordovaBridge.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaBridge.java b/framework/src/org/apache/cordova/CordovaBridge.java
index a6ebebb..c007db3 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;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message