diff --git a/README.md b/README.md index b44ec40..fab8d53 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# ulid-creator +# ULID Creator A Java library for generating and handling ULIDs - _Universally Unique Lexicographically Sortable Identifiers_. @@ -97,7 +97,7 @@ Examples of ULIDs: ### GUID -The GUIDs in this library are based on the ULID specification [9]. The first 48 bits represent the count of milliseconds since Unix Epoch, 1 January 1970. The remaining 60 bits are generated by a secure random number generator. +The GUIDs in this library are based on the [ULID specification](https://github.com/ulid/spec). The first 48 bits represent the count of milliseconds since Unix Epoch, 1 January 1970. The remaining 60 bits are generated by a secure random number generator. Every time the timestamp changes the random part is reset to a new random value. If the current timestamp is equal to the previous one, the random bits are incremented by 1. diff --git a/src/main/java/com/github/f4b6a3/ulid/guid/GuidCreator.java b/src/main/java/com/github/f4b6a3/ulid/guid/GuidCreator.java index ecfe236..28c443d 100644 --- a/src/main/java/com/github/f4b6a3/ulid/guid/GuidCreator.java +++ b/src/main/java/com/github/f4b6a3/ulid/guid/GuidCreator.java @@ -193,7 +193,8 @@ public class GuidCreator { /** * Increment the random part of the GUID. * - * An exception is thrown when more than 2^80 increment operations are made. + * An exception is thrown when more than 2^80 increment operations are made + * in the same millisecond. * * @throws UlidCreatorException * if an overrun happens.