up vote 1 down vote favorite
share [g+] share [fb]

When I do "uuidgen" in Unix how does it generate the ID?

link|improve this question

65% accept rate
feedback

1 Answer

up vote 3 down vote accepted

uuidgen comes from libuuid, which is part of e2fsprogs

The manual page for the e2fsprogs uuid_generate functtion states:

The uuid will be generated based on high-quality randomness from /dev/urandom, if available. If it is not available, then uuid_generate will use an alternative algorithm which uses the current time, the local ethernet MAC address (if available), and random data generated using a pseudo-random generator.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.