[Bug 28990] LibUUID dependency problematic for OSX and Windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 12 14:19:09 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28990

--- Comment #4 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk> 2010-07-12 05:19:08 PDT ---
(In reply to comment #1)
> If we're generating things that appear to be UUIDs, we should make a reasonable
> effort to make them universally unique, so I don't think the GLib PRNG is a
> suitable fallback mechanism.

Well if you look attentively, we use the random version from libuuid, not the
time based one, this is the reason I proposed a default fallback that uses
random and does not guaranty uniqueness. Maybe that is a mistake and we should
use the timed based version in libuuid and implement the same fallback based on
time ?

> 
> Windows has API to create UUIDs
> (<http://msdn.microsoft.com/en-us/library/Aa379205>, example usage
> <http://wiki.tcl.tk/10554>), and I find it hard to believe that there isn't a
> similarly good solution on Mac OS X, *BSD, etc. I'd accept patches to make
> Gabble able to use a more portable UUID library on non-Linux Unixes.

Well even OSX have it's own UUID library, but they all use a different format.
>From what I understand, Google server expect the libuuid format which make this
feature quite Gabble/XMPP specific. Also, even implemented base on time, it
will still take 3-4 lines of code.  I wonder if it's actually worth having
external dependency?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list