Skip to content

Commit 5c6b11e

Browse files
committed
HHH-18974 - remove the access to the SecureRandom numbergenerator inside the UuidVersion7Strategy constructor
Signed-off-by: Jan Schatteman <[email protected]>
1 parent e3b5258 commit 5c6b11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/id/uuid/UuidVersion7Strategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static long randomSequence() {
8282

8383
@Internal
8484
public UuidVersion7Strategy() {
85-
this( Instant.EPOCH, Holder.numberGenerator.nextLong( MAX_RANDOM_SEQUENCE ) );
85+
this( Instant.EPOCH, Long.MIN_VALUE );
8686
}
8787

8888
@Internal

0 commit comments

Comments
 (0)