On this page
new_ulid๏
Use md.new_ulid from the public package namespace.
- new_ulid() str[source]๏
Return one freshly minted 26-character ULID string.
Contract:
48-bit millisecond timestamp in the high bits keeps outputs lexicographically sortable across calls in different ms.
80 random bits from os.urandom make collisions negligible (2^80 space per millisecond).
- Returns:
A fresh 26-character ULID.
- Return type:
str