Understand ULID structure and components
masterA ULID is a 128-bit identifier encoded as a 26-character string using Crockford's base32. It consists of two main components:
- Timestamp (48 bits): A UNIX-time integer in milliseconds. This component ensures the identifier is lexicographically sortable. It is represented by the first 10 characters of the string.
- Randomness (80 bits): A cryptographically secure random component. This is represented by the remaining 16 characters of the string.
String Representation
ttttttttttrrrrrrrrrrrrrrrr where t is the Timestamp and r is the Randomness.