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/12 17:47:53 UTC

[camel] branch master updated: CAMEL-16193 - Use SecureRandom instead of Random - Camel-Azure-Storage-Blob

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


The following commit(s) were added to refs/heads/master by this push:
     new 4f00f8a  CAMEL-16193 - Use SecureRandom instead of Random - Camel-Azure-Storage-Blob
4f00f8a is described below

commit 4f00f8a8143c601af093b003b8a857e847ba1f2d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 12 18:47:04 2021 +0100

    CAMEL-16193 - Use SecureRandom instead of Random - Camel-Azure-Storage-Blob
---
 .../azure/storage/blob/integration/BlobOperationsITTest.java       | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsITTest.java b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsITTest.java
index 9958b14..5e4d9a8 100644
--- a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsITTest.java
+++ b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsITTest.java
@@ -30,7 +30,6 @@ import java.security.SecureRandom;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Objects;
-import java.util.Random;
 
 import com.azure.storage.blob.models.PageList;
 import com.azure.storage.blob.models.PageRange;
@@ -303,7 +302,7 @@ class BlobOperationsITTest extends BaseIT {
         final BlobOperations operations = new BlobOperations(configuration, blobClientWrapper);
 
         byte[] dataBytes = new byte[1024]; // we set range for the page from 0-511
-        new Random().nextBytes(dataBytes);
+        new SecureRandom().nextBytes(dataBytes);
         final String data = new String(dataBytes, StandardCharsets.UTF_8);
         final InputStream dataStream = new ByteArrayInputStream(dataBytes);
 
@@ -339,7 +338,7 @@ class BlobOperationsITTest extends BaseIT {
         final BlobOperations operations = new BlobOperations(configuration, blobClientWrapper);
 
         byte[] dataBytes = new byte[512]; // we set range for the page from 0-511
-        new Random().nextBytes(dataBytes);
+        new SecureRandom().nextBytes(dataBytes);
         final String data = new String(dataBytes, StandardCharsets.UTF_8);
         final InputStream dataStream = new ByteArrayInputStream(dataBytes);
 
@@ -368,7 +367,7 @@ class BlobOperationsITTest extends BaseIT {
         final BlobOperations operations = new BlobOperations(configuration, blobClientWrapper);
 
         byte[] dataBytes = new byte[512]; // we set range for the page from 0-511
-        new Random().nextBytes(dataBytes);
+        new SecureRandom().nextBytes(dataBytes);
         final String data = new String(dataBytes, StandardCharsets.UTF_8);
         final InputStream dataStream = new ByteArrayInputStream(dataBytes);