What is a UUID?

It’s an identification number that will uniquely identify something. The idea being that id number will be universally unique. Thus, no two things should have the same uuid. In fact, if you were to generate 10 trillion uuids, there would be something along the lines of a .00000006 chance of two uuids being the same.

Which UUID version to use?

There are two different ways of generating a UUID. If you just need a unique ID, you want a version 1 or version 4. Version 1: This generates a unique ID based on a network card MAC address and current time. If any of these things is sensitive in any way, don’t use this. The … Read more