cowtowncoder / java-uuid-generator

Java Uuid Generator (JUG) is a Java library for generating all standard UUID versions (v1 - v7)
Apache License 2.0
730 stars 104 forks source link

Add alternate version to UUIDv7 generator that uses random values on every call (not just for different timestamp) #94

Closed magdel closed 7 months ago

magdel commented 7 months ago

TimeBaseEpochGenerator creates very similar values when calls to generate are made within same millisecond. This may be unsafe in some enviroments. To solve this added TimeBaseEpochRandomGenerator to create random value on every call to generate but still in v7 manner.

cowtowncoder commented 7 months ago

Looks good: I made some minor changes (mostly to javadoc, version references), will merge.

With these changes I am thinking of possibly releasing 5.0.0 in near future.

magdel commented 7 months ago

Looking forward for 5.0.0. Thank you!