3 ms·
Who ever said UUID's were random? They are sufficiently structured to be globally UNIQUE. That's the contract.
by twistedpair 14y ago
Who ever said UUID's were random? They are sufficiently structured to be globally UNIQUE. That's the contract.
- bradleybuda 14y agoYou're absolutely right. It was 100% our fault that Meldium was broken - we didn't pay attention to the implementation, and we assumed that job IDs were random when they really weren't. I don't mean to cast any blame on UUIDs or resque-status in this post.
- icoder 14y agoAnd that becomes clear from the article but leaves the title a bit off
- vilda 14y agoDepends on implementation - always read docs. UUID type 4 is random and does not follow standard rules for UUID generation.
- MichaelGG 14y agoThe easiest way is to just read 128-bits of randomness. There's no good use case, outside of wanting sorted identifiers, that warrant using non-random UUIDs.