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/13 13:56:40 UTC

[camel] branch master updated (1585912 -> abf1981)

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 1585912  CAMEL-16170: Modularize camel-spring
     new 1192838  CAMEL-16193 - Use SecureRandom instead of Random
     new abf1981  CAMEL-16193 - Use SecureRandom instead of Random - Camel-Caffeine

The 2 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:
 .../camel/component/caffeine/cache/CaffeineCacheTestSupport.java      | 4 ++--
 .../processor/aggregate/CaffeineAggregationRepositoryRoutesTest.java  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


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

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 abf198117dbe67c38a8a97bbc17e98d33402840c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Feb 13 14:55:57 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random - Camel-Caffeine
---
 .../apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
index 7f11975..bb13872 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
@@ -19,7 +19,7 @@ package org.apache.camel.component.caffeine.cache;
 import java.security.SecureRandom;
 import java.util.Arrays;
 import java.util.List;
-import java.util.Map;d
+import java.util.Map;
 import java.util.UUID;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;


[camel] 01/02: CAMEL-16193 - Use SecureRandom instead of Random

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 1192838ed3ab0a722b89c476ca0da192cf1c3779
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Feb 13 14:53:59 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random
---
 .../camel/component/caffeine/cache/CaffeineCacheTestSupport.java    | 6 +++---
 .../aggregate/CaffeineAggregationRepositoryRoutesTest.java          | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
index 612668d..7f11975 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/CaffeineCacheTestSupport.java
@@ -16,10 +16,10 @@
  */
 package org.apache.camel.component.caffeine.cache;
 
+import java.security.SecureRandom;
 import java.util.Arrays;
 import java.util.List;
-import java.util.Map;
-import java.util.Random;
+import java.util.Map;d
 import java.util.UUID;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -62,7 +62,7 @@ public class CaffeineCacheTestSupport extends CamelTestSupport {
     }
 
     protected static int[] generateRandomArrayOfInt(int size, int lower, int upper) {
-        Random random = new Random();
+        SecureRandom random = new SecureRandom();
         int[] array = new int[size];
 
         Arrays.setAll(array, i -> random.nextInt(upper - lower) + lower);
diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/aggregate/CaffeineAggregationRepositoryRoutesTest.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/aggregate/CaffeineAggregationRepositoryRoutesTest.java
index 51741a8..a9bcb74 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/aggregate/CaffeineAggregationRepositoryRoutesTest.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/aggregate/CaffeineAggregationRepositoryRoutesTest.java
@@ -16,8 +16,8 @@
  */
 package org.apache.camel.component.caffeine.processor.aggregate;
 
+import java.security.SecureRandom;
 import java.util.Arrays;
-import java.util.Random;
 import java.util.stream.IntStream;
 
 import org.apache.camel.EndpointInject;
@@ -86,7 +86,7 @@ public class CaffeineAggregationRepositoryRoutesTest extends CamelTestSupport {
     }
 
     protected static int[] generateRandomArrayOfInt(int size, int lower, int upper) {
-        Random random = new Random();
+        SecureRandom random = new SecureRandom();
         int[] array = new int[size];
 
         Arrays.setAll(array, i -> random.nextInt(upper - lower) + lower);