Closed djarnis73 closed 1 year ago
If I remember correctly this is intentional: without generating virtual 100 nsec units it would not be possible to generate millions of UUIDs per second. So the 100nsec units use basically use counter from 0 to 9999. So this sounds like intended behavior.
If you want only actual resolution you would need to mask that part of timestamp.
Ok, I will find a way to work around the issue, thanks for the explanation.
Hi
For some legacy stuff that I'm working on, I needed to be able to create UUID's for a given timestamp, so I created the following utility class create time based UUID's and convert them back to Instant:
But while doing some testing of it I discovered that the generated UUID (when converved back to an Instant) has micro/nano-second precision.
Following unit test fails because of the 22 micros:
Am I doing something wrong here or should the generated UUID not have the same precision as the UUIDClock?