[PATCH] messageId isn't randomized
----------------------------------

                 Key: SYNAPSE-506
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-506
             Project: Synapse
          Issue Type: Bug
          Components: Transports
    Affects Versions: 1.1.1
            Reporter: Dave Brosius
            Priority: Minor
             Fix For: 1.1.1
         Attachments: create_unique_message_ids.diff

Code attempts to add a random value to the message id, but it just appends 0 
always instead, due to bad parenthesizing

             // compute the unique message ID
             String messageId = filePath + "_" + fileName +
-                "_" + System.currentTimeMillis() + "_" + (int) Math.random() * 
1000;
+                "_" + System.currentTimeMillis() + "_" + (int) (Math.random() 
* 1000);


patch fixes this

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to