[wsas-java-dev] svn commit r9425 - branches/wsas/java/2.1/wsf/javascript/native/src

svn at wso2.org svn at wso2.org
Fri Nov 2 07:56:45 PDT 2007


Author: saminda
Date: Fri Nov  2 07:56:41 2007
New Revision: 9425

Modified:
   branches/wsas/java/2.1/wsf/javascript/native/src/WSRequest.js
Log:
problems related to randomToken


Modified: branches/wsas/java/2.1/wsf/javascript/native/src/WSRequest.js
==============================================================================
--- branches/wsas/java/2.1/wsf/javascript/native/src/WSRequest.js	(original)
+++ branches/wsas/java/2.1/wsf/javascript/native/src/WSRequest.js	Fri Nov  2 07:56:41 2007
@@ -740,7 +740,8 @@
         } else {
             // coin a unique identifier based on the time (in milliseconds) and a 10-digit random number.
             now = (new Date()).valueOf();
-            randomToken = Math.floor(Math.random() * 10000000000);
+            //randomToken = Math.floor(Math.random() * 10000000000);
+            randomToken = now;
             id = "http://identifiers.wso2.com/messageid/" + now + "/" + randomToken;
         }
         headers += "<wsa:MessageID>" + id + "</wsa:MessageID>\n";




More information about the Wsas-java-dev mailing list