portable uuid module
mpm at selenic.com
Fri Apr 15 19:34:27 BST 2005
On Fri, Apr 15, 2005 at 05:15:22PM +0200, Denys Duchier wrote:
> I noticed that osutils.py bemoans the lack of a portable uuid implementation. I
> have written one and I attach it below. uuid.py contains a pure python
> implementation of the algorithm used by Theodore Tso's libuuid, it is also able
> to take advantage of libuuid if it is present on your system, and it can also
> use the Linux /proc/sys/kernel/random/uuid interface if available. You always
> automatically get the fastest implementation available.
One often raised complaint about such UUIDs is that they're based on
MAC addresses that can be matched against particular machines. Not
sure if that's a problem here.
Mathematics is the supreme nostalgia of our time.
More information about the bazaar