About UUID
A UUID (Universally Unique Identifier) is a standardized 128-bit identifier widely used to ensure the uniqueness of objects, data, or components in distributed systems. UUID generation does not rely on a central authority and has a high probability of uniqueness, making it suitable for database keys, file names, session identifiers, etc.
Common UUID Versions:
- v1: Generated based on timestamp and node (MAC address).
- v3: Generated based on namespace and name using MD5 hash.
- v4: Generated randomly (most common).
- v5: Generated based on namespace and name using SHA-1 hash.
- nil: All zeros UUID.