On Fri, Sep 06, 2019 at 10:35:08AM +0200, Geoff Simmons wrote: > On 9/6/19 09:57, Schimweg, Luca wrote: > > > > UUIDs generally have different versions. I implemented version 4 > > right now, but if you want to we can implement different UUID types. > > I personally think one is enough, because most people won't care if > > they get an UUID v1, v2, ..., > I agree with this. Most people want UUIDs just for the uniqueness, and > don't care if there's something like a MAC address or timestamp in there > somewhere. > > I would suggest just v4 first, and the rest only if anyone ever asks for > them.
I agree with this as well. > I doubt that anyone ever will. I'm certain some will want to. In distributed architectures it's often a requirement to be able to partially isolate your uuids, even just for basic reasons like distributing the logs to multiple servers without losing ordering for example. Let's simply declare that uuid(1) follows the v4 format of RFC4122 with all fields random. Then we may add new types later on when needed. Cheers, Willy