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:44:11 UTC
[camel] 01/03: 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
commit ab909bf1ac2bf6957473c34e05da075f6d9b49a6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 12 18:40:58 2021 +0100
CAMEL-16193 - Use SecureRandom instead of Random - Camel-Azure-Storage-Blob
---
.../component/azure/storage/blob/integration/BlobProducerITTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerITTest.java b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerITTest.java
index 246b478..3ee6944 100644
--- a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerITTest.java
+++ b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerITTest.java
@@ -20,6 +20,7 @@ import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
+import java.security.SecureRandom;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
@@ -151,7 +152,7 @@ class BlobProducerITTest extends BaseIT {
exchange.getIn().setHeader(BlobConstants.BLOB_NAME, blobName);
byte[] dataBytes = new byte[512]; // we set range for the page from 0-511
- new Random().nextBytes(dataBytes);
+ new SecureRandom().nextBytes(dataBytes);
final InputStream dataStream = new ByteArrayInputStream(dataBytes);
final PageRange pageRange = new PageRange().setStart(0).setEnd(511);