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 e377399fd1f52fdf7557b55135c12e92921946ce
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Feb 15 07:59:06 2021 +0100

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

diff --git 
a/components/camel-ehcache/src/test/java/org/apache/camel/component/ehcache/EhcacheTestSupport.java
 
b/components/camel-ehcache/src/test/java/org/apache/camel/component/ehcache/EhcacheTestSupport.java
index fb98aab..5dcf672 100644
--- 
a/components/camel-ehcache/src/test/java/org/apache/camel/component/ehcache/EhcacheTestSupport.java
+++ 
b/components/camel-ehcache/src/test/java/org/apache/camel/component/ehcache/EhcacheTestSupport.java
@@ -17,10 +17,10 @@
 package org.apache.camel.component.ehcache;
 
 import java.net.URL;
+import java.security.SecureRandom;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
-import java.util.Random;
 import java.util.UUID;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -90,7 +90,7 @@ public class EhcacheTestSupport 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);

Reply via email to