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/15 12:28:39 UTC

[camel] branch master updated (b6a4c8d -> 4f99a3f)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from b6a4c8d  CAMEL-16193 - Use SecureRandom instead of Random - Camel-JMS
     new 74675f2  CAMEL-16193 - Use SecureRandom instead of Random - Camel-JPA
     new 55f48d4  CAMEL-16193 - Use SecureRandom instead of Random - Camel-Leveldb
     new 4f99a3f  CAMEL-16193 - Use SecureRandom instead of Random - Camel-Pubnub

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/camel/component/jpa/JpaUsePersistTest.java    | 4 ++--
 .../org/apache/camel/component/leveldb/LevelDBBinaryTest.java     | 8 ++++----
 .../camel/component/pubnub/example/PubNubSensor2Example.java      | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)


[camel] 03/03: CAMEL-16193 - Use SecureRandom instead of Random - Camel-Pubnub

Posted by ac...@apache.org.
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 4f99a3f19219394dc35269930a4f10d9ba21866f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 15 13:28:04 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random - Camel-Pubnub
---
 .../apache/camel/component/pubnub/example/PubNubSensor2Example.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/example/PubNubSensor2Example.java b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/example/PubNubSensor2Example.java
index 6aa6d9d..22123ee 100644
--- a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/example/PubNubSensor2Example.java
+++ b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/example/PubNubSensor2Example.java
@@ -16,9 +16,9 @@
  */
 package org.apache.camel.component.pubnub.example;
 
+import java.security.SecureRandom;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.Random;
 import java.util.concurrent.ConcurrentHashMap;
 
 import com.pubnub.api.models.consumer.pubsub.PNMessageResult;
@@ -113,7 +113,7 @@ public final class PubNubSensor2Example {
         private int temperature;
 
         DeviceWeatherInfo(String device) {
-            Random rand = new Random();
+            SecureRandom rand = new SecureRandom();
             this.device = device;
             this.humidity = rand.nextInt(100);
             this.temperature = rand.nextInt(40);


[camel] 02/03: CAMEL-16193 - Use SecureRandom instead of Random - Camel-Leveldb

Posted by ac...@apache.org.
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 55f48d47bb13cc15e5edf898a15daf28571a5a77
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 15 13:25:02 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random - Camel-Leveldb
---
 .../org/apache/camel/component/leveldb/LevelDBBinaryTest.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBBinaryTest.java b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBBinaryTest.java
index af81141d..518d09e 100644
--- a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBBinaryTest.java
+++ b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBBinaryTest.java
@@ -17,7 +17,7 @@
 package org.apache.camel.component.leveldb;
 
 import java.io.ByteArrayOutputStream;
-import java.util.Random;
+import java.security.SecureRandom;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.camel.builder.RouteBuilder;
@@ -43,11 +43,11 @@ public class LevelDBBinaryTest extends LevelDBTestSupport {
     public void testLevelDBAggregate() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:aggregated");
         byte[] a = new byte[10];
-        new Random().nextBytes(a);
+        new SecureRandom().nextBytes(a);
         byte[] b = new byte[10];
-        new Random().nextBytes(b);
+        new SecureRandom().nextBytes(b);
         byte[] c = new byte[10];
-        new Random().nextBytes(c);
+        new SecureRandom().nextBytes(c);
 
         try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {
             outputStream.write(a);


[camel] 01/03: CAMEL-16193 - Use SecureRandom instead of Random - Camel-JPA

Posted by ac...@apache.org.
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 74675f2a0cb0d24273c1802f8ee3106ab506f303
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 15 13:22:42 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random - Camel-JPA
---
 .../test/java/org/apache/camel/component/jpa/JpaUsePersistTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-jpa/src/test/java/org/apache/camel/component/jpa/JpaUsePersistTest.java b/components/camel-jpa/src/test/java/org/apache/camel/component/jpa/JpaUsePersistTest.java
index dabe4d3..41af21e 100644
--- a/components/camel-jpa/src/test/java/org/apache/camel/component/jpa/JpaUsePersistTest.java
+++ b/components/camel-jpa/src/test/java/org/apache/camel/component/jpa/JpaUsePersistTest.java
@@ -16,7 +16,7 @@
  */
 package org.apache.camel.component.jpa;
 
-import java.util.Random;
+import java.security.SecureRandom;
 
 import javax.persistence.PersistenceException;
 
@@ -40,7 +40,7 @@ public class JpaUsePersistTest extends AbstractJpaMethodTest {
     public void produceExistingEntityShouldThrowAnException() throws Exception {
         setUp("jpa://" + Order.class.getName() + "?usePersist=true");
 
-        long id = new Random().nextLong();
+        long id = new SecureRandom().nextLong();
         Order order2 = new Order();
         order2.setId(id);
         order2.setProductName("Beer");