RFR: 8334015: Add Support for UUID Version 7 (UUIDv7) defined in RFC 9562 [v3]

Roger Riggs rriggs at openjdk.org
Mon Sep 29 19:25:28 UTC 2025


On Tue, 23 Sep 2025 10:04:03 GMT, Kieran Farrell <kfarrell at openjdk.org> wrote:

>> @kieran-farrell Is there a last-minute plan to make use of `nextLong()` as suggested by @RogerRiggs?
>> Otherwise looks good
>
> Thanks @rgiulietti, the need for a nextLong() API existed whenwe were using higher percision bits in the first half of the UUID, there fore only required the second half (long) to be generated with random bits, however we are no longer using higher percision bits in the first ling, and instead using random bits in their place, so we would need to call nextLong twice and overwrite with the timestamp etc. which results in a large perfomance dec.

This thread can be resolved.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25303#discussion_r2389015014


More information about the core-libs-dev mailing list