Skip to content

Commit

Permalink
Markdown formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vidyabhandary committed Sep 1, 2024
1 parent 9a3b644 commit f7c9518
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions misc/UUIDTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

There are 8 versions of UUIDs (v1 through v8), each with different generation methods and use cases.

UUID v1: Timestamp + counter + MAC address
UUID v2: Reserved for security IDs (details unknown)
UUID v3: MD5 hash of provided data (e.g., DNS, URLs)
UUID v4: Random data (most common)
UUID v5: SHA1 hash of provided data (e.g., DNS, URLs)
UUID v6: Like v1, but sortable by creation time
UUID v7: Timestamp + random data
UUID v8: Custom implementation
- UUID v1: Timestamp + counter + MAC address
- UUID v2: Reserved for security IDs (details unknown)
- UUID v3: MD5 hash of provided data (e.g., DNS, URLs)
- UUID v4: Random data (most common)
- UUID v5: SHA1 hash of provided data (e.g., DNS, URLs)
- UUID v6: Like v1, but sortable by creation time
- UUID v7: Timestamp + random data
- UUID v8: Custom implementation

Key points:
• UUID v4: Generated from random data. Good default choice for most applications.
• UUID v7: Created from timestamp and random data. Useful for sortable IDs (e.g., database keys).
• When choosing a UUID version, you'll usually be picking between v4 and v7.

- UUID v4: Generated from random data. Good default choice for most applications.
- UUID v7: Created from timestamp and random data. Useful for sortable IDs (e.g., database keys).
- When choosing a UUID version, you'll usually be picking between v4 and v7.

References:

Expand Down

0 comments on commit f7c9518

Please sign in to comment.