UUIDs (or GUIDs) are quite commonly used from filesystems to databases. Instead of relying on uuidgen
to generate unreadable garbage such as 2acb01ee-885a-43a0-922e-9b34360082f4
, why not bend the spec a little (or a lot) and generate instantly memorable and somewhat readable V4 UUIDs such as bea71e55-a1ec-4e5f-a5c0-c0e10b1a571c
?
Just clone this repository or download the release and run ./vanity-uuid{4,-nospec}-arx
today! Note: running arx is something like x6 slower.
- Install
nix
. - Basically everything is in default.nix, because this repo is basically a practice for understanding
nixpkgs
. - Create single file binaries that are supposedly 100% crossplatform using:
nix-build -A vanity-uuid4-arx && cp $(readlink result) bin/arx/vanity-uuid4-arx
nix-build -A vanity-uuid-nospec-arx && cp $(readlink result) bin/arx/vanity-uuid-nospec-arx