745bd55ffc
Added drift tolerance of 10 seconds to preserve monotonicity when the system clock is adjusted by NTP after a small clock drift or when the system clock jumps back by 1 second due to leap second. The random component is incremented when the current time: - is the same as the previous time; - has moved backwards up to 10 seconds. The time component is also incremented if the random component is exceeded, which is quite rare. |
||
---|---|---|
.. | ||
main/java/com/github/f4b6a3/ulid | ||
test/java/com/github/f4b6a3/ulid |