Module: ULID::Constants
Constant Summary collapse
- MIN_TIME =
smallest representable time
([0] * 6).pack('C' * 6)
- MAX_TIME =
largest representable time
([255] * 6).pack('C' * 6)
- MIN_ENTROPY =
smallest possible seed value
([0] * 10).pack('C' * 10)
- MAX_ENTROPY =
largest possible seed value
([255] * 10).pack('C' * 10)
- ENCODING =
Crockford’s Base32. Alphabet portion is missing I, L, O, and U.
"0123456789ABCDEFGHJKMNPQRSTVWXYZ"
- B32REF =
Byte to index table for O(1) lookups when unmarshaling. We rely on nil as sentinel value for invalid indexes.