3 ms·
Well, that's possible, but I'd say it's generally better to keep close to the spec and v4 is the closest option here.
by ivan_gammel 9y ago
Well, that's possible, but I'd say it's generally better to keep close to the spec and v4 is the closest option here.
- MichaelGG 9y agoBut what's the value in the "spec" here? I see people mentioning this and I'm wondering what the rationale is.
- cronjobber 9y agoThe rationale is that you can use them along with those other versions of UUID that contain nonrandom data. Assume Bob uses one such not-entirely-random UUID variety and actually makes use of the embedded information. Charlie uses random UUID. Bob and Charlie merge their data. If Charlie had filled the version bits with random garbage, the merge would poison Bob's use of the embedded information. Basically, UUIDs are a discriminated union type.
- ivan_gammel 9y agoThanks, that's the best answer.
- concede_pluto 9y agoBy violating the spec you're assuming you'll never want to use a tool that strictly adheres to the spec. Postel's Law works best because it accommodates some people not following it.