←back to thread

68 points der_gopher | 1 comments | | HN request time: 0.323s | source
Show context
sblom ◴[] No.46210871[source]
I love the aesthetics. The cryptographic strength tradeoffs (against UUIDv7) seem rough for a lot of applications, though.
replies(1): >>46211763 #
jalk ◴[] No.46211763[source]
Not sure what you mean by cryptographic strength - they are both Unique ID generators, not meant for anything related to cryptography.

UUIDv7 has 62 bits of random data, ULID uses 80 bits, so if anything ULID is "stronger" (meaning less chances of generating the same id within the same millisecond)

replies(1): >>46212492 #
1. 0x457 ◴[] No.46212492[source]
UUIDv7 has 74 bits of randomness, not 62, you forgot rand_a portion, so the difference is just 6 bits and only matters within the same millisecond.