Skip to content

Instantly share code, notes, and snippets.

@tifroz
tifroz / _.md
Created October 4, 2012 16:32 — forked from anonymous/inlet.js
just another inlet to tributary

No Previous Gist

/**
* Generates a new UUID and passes it to the given callback function.
*
* Uses the a command-line uuid generator. Caches UUIDs to avoid
* unneccessary spawning of new processes.
*
* You can easily adjust the script used to create the UUID. By
* default I am using the OSSP uuid program, which is available in
* most linux distro's package managers (e.g. `sudo apt-get install
* uuid` on ubuntu).