Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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