Updated README.md
This commit is contained in:
parent
da8061af21
commit
1fc0952067
|
@ -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 <sup>[9]</sup>. 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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue