uuid3() and uuid4()
The functions uuid3()
and uuid4()
generate a UUID version 3 or 4, respectively.
Examples
uuid4()
returnsda7e73a7-8dca-4123-b671-7997d7fd2fb8
or a similar, random UUIDuuid3('6ba7b810-9dad-11d1-80b4-00c04fd430c8', 'example.com')
returns9073926b-929f-31c2-abc9-fad77ae3e8eb
.uuid3("foobar")
is not really a call that conforms to the standard, since no namespace (a UUID) was included, but returns3858f622-30ac-3c91-9f30-0c664312c63f
anyway.
See also
Last updated