Creates the random part of the uuid.
Creates the random part of the uuid.
Creates a UUID where the first 8 bytes are based on the current time and the second 8 bytes are based on a random number.
Creates a UUID where the first 8 bytes are based on the current time and the second 8 bytes are based on a random number. This should provide uniqueness along with sorting by date.
Doesn't support negative time values.
Gets a reusable byte array of length 8.
Gets a reusable byte array of length 8. This is a thread-local value, so be careful how it's used.
Sets the variant number for the UUID.
Sets the variant number for the UUID. This overwrites the first 2 bits of the 1st byte. Expects an 8 byte array that is the least significant half of the UUID.
Sets the version number for the UUID.
Sets the version number for the UUID. This overwrites the first 4 bits of the 7th byte. Expects an 8 byte array that is the most significant half of the UUID.
UUID generator that creates UUIDs that sort by creation time (useful for accumulo).
Uses variant 2 (IETF) and version 4 (for random UUIDs, although it's not totally random). See https://en.wikipedia.org/wiki/Universally_unique_identifier#Variants_and_versions
Using a version 1 (time based) UUID doesn't ensure uniqueness when running in different processes on the same machine (at least not without some complicated distributed locking), as MAC address (or IP address) is the unique factor.