ulid-creator/src
Fabio Lima 745bd55ffc feat: handle clock drift #18
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.
2022-04-21 14:53:06 -03:00
..
main/java/com/github/f4b6a3/ulid feat: handle clock drift #18 2022-04-21 14:53:06 -03:00
test/java/com/github/f4b6a3/ulid feat: handle clock drift #18 2022-04-21 14:53:06 -03:00