This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 2_1_X in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push: new 39cd1a926d [SYNCOPE-1720] Switching to time-based epoch generator 39cd1a926d is described below commit 39cd1a926d2ea247711cb2498a0745e87693b35c Author: Francesco Chicchiriccò <ilgro...@apache.org> AuthorDate: Mon Jan 9 10:47:32 2023 +0100 [SYNCOPE-1720] Switching to time-based epoch generator --- .../org/apache/syncope/core/spring/security/SecureRandomUtils.java | 4 ++-- pom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java index 9d7be34991..e60d2ccd78 100644 --- a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java +++ b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java @@ -19,7 +19,7 @@ package org.apache.syncope.core.spring.security; import com.fasterxml.uuid.Generators; -import com.fasterxml.uuid.impl.RandomBasedGenerator; +import com.fasterxml.uuid.NoArgGenerator; import java.security.SecureRandom; import java.util.UUID; import org.apache.commons.text.RandomStringGenerator; @@ -44,7 +44,7 @@ public final class SecureRandomUtils { withinRange('0', '9'). build(); - private static final RandomBasedGenerator UUID_GENERATOR = Generators.randomBasedGenerator(RANDOM); + private static final NoArgGenerator UUID_GENERATOR = Generators.timeBasedEpochGenerator(RANDOM); public static String generateRandomPassword(final int tokenLength) { return FOR_PASSWORD.generate(tokenLength); diff --git a/pom.xml b/pom.xml index d732d2f9a4..a3227d7c2e 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ under the License. <parent> <groupId>org.apache</groupId> <artifactId>apache</artifactId> - <version>28</version> + <version>29</version> <relativePath /> </parent> @@ -841,7 +841,7 @@ under the License. <dependency> <groupId>com.fasterxml.uuid</groupId> <artifactId>java-uuid-generator</artifactId> - <version>4.0.1</version> + <version>4.1.0</version> </dependency> <dependency>