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 99632ab7809b88fc7ee02107ab242eeb637c6019 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Feb 15 09:18:02 2021 +0100 CAMEL-16193 - Use SecureRandom instead of Random - Camel-google-calendar --- .../component/google/calendar/AbstractGoogleCalendarTestSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/AbstractGoogleCalendarTestSupport.java b/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/AbstractGoogleCalendarTestSupport.java index 5afbdb2..a1ac2dd 100644 --- a/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/AbstractGoogleCalendarTestSupport.java +++ b/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/AbstractGoogleCalendarTestSupport.java @@ -17,10 +17,10 @@ package org.apache.camel.component.google.calendar; import java.io.IOException; +import java.security.SecureRandom; import java.util.HashMap; import java.util.Map; import java.util.Properties; -import java.util.Random; import com.google.api.services.calendar.model.Calendar; import org.apache.camel.CamelContext; @@ -43,7 +43,7 @@ public class AbstractGoogleCalendarTestSupport extends CamelTestSupport { @BeforeEach public void createTestCalendar() { Calendar calendar = new Calendar(); - Random rand = new Random(); + SecureRandom rand = new SecureRandom(); calendar.setSummary("camel-calendar-" + rand.nextInt()); calendar.setTimeZone("America/St_Johns");
