Skip to content

Commit

Permalink
enum: add note about uuid4 and uuid7 collision guarantees
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Jun 24, 2024
1 parent 96ea0c0 commit 3aa19d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ The enum function has four modes of operation:
by sorting on the generated uuids:
$ qsv enum --uuid4 file.csv | qsv sort -s uuid > shuffled.csv
This will shuffle the lines of the file.csv file as uuids generated using the v4
specification are random and for practical purposes, are unique (1 in 2^122).
See https://en.wikipedia.org/wiki/Universally_unique_identifier#Collisions
This will not work with uuids generated using the v7 spec as they are time-based
and monotonically increasing, and will not shuffle the lines.
Usage:
qsv enum [options] [<input>]
qsv enum --help
Expand Down

0 comments on commit 3aa19d1

Please sign in to comment.