You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/02/16 10:41:38 UTC
[camel] 01/02: Revert "CAMEL-16193 - Use SecureRandom instead of
Random - Camel-JMS"
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 08ec2e3f27ce9bf287ce05aa368d691d79836650
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Feb 16 11:38:24 2021 +0100
Revert "CAMEL-16193 - Use SecureRandom instead of Random - Camel-JMS"
This reverts commit b6a4c8dc93841b15228aaf2d965e7036e2d436ed.
---
.../java/org/apache/camel/component/jms/reply/QueueReplyManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
index 3e50471..aa05326 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
@@ -17,7 +17,7 @@
package org.apache.camel.component.jms.reply;
import java.math.BigInteger;
-import java.security.SecureRandom;
+import java.util.Random;
import javax.jms.Destination;
import javax.jms.JMSException;
@@ -135,7 +135,7 @@ public class QueueReplyManager extends ReplyManagerSupport {
String replyToSelectorName = endpoint.getReplyToDestinationSelectorName();
if (replyToSelectorName != null) {
// create a random selector value we will use for the reply queue
- replyToSelectorValue = "ID:" + new BigInteger(24 * 8, new SecureRandom()).toString(16);
+ replyToSelectorValue = "ID:" + new BigInteger(24 * 8, new Random()).toString(16);
String fixedMessageSelector = replyToSelectorName + "='" + replyToSelectorValue + "'";
answer = new SharedQueueMessageListenerContainer(endpoint, fixedMessageSelector);
// must use cache level consumer for fixed message selector