portable uuid module
Denys Duchier
duchier at ps.uni-sb.de
Fri Apr 15 19:56:48 BST 2005
Matt Mackall <mpm at selenic.com> writes:
> 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.
that's only the case when no high-quality source of randomness is available.
In any case, my python implementation defines _get_mac_address(): it doesn't
have to actually return a mac address - it does it's best to return one, but I
don't know of a truly portable way to do so - I am using heuristic methods which
could definitely stand some improvement. Feel free to suggest an alternative
way of obtaining a sequence of 6 bytes that already provides some measure of
global uniqueness (which is of course the point of using a MAC address in the
first place) - I'd be delighted to add better options.
Cheers,
--
Dr. Denys Duchier - IRI & LIFL - CNRS, Lille, France
AIM: duchierdenys
More information about the bazaar
mailing list