[Asterisk-Dev] dev conf topic: better CDRs

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Feb 24 00:01:13 MST 2005


On Wednesday 23 February 2005 23:40, Michael Giagnocavo wrote:
> -----Original Message-----
> From: asterisk-dev-bounces at lists.digium.com
> [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of
> Tilghman Lesher
>
> >> >Currently, we have a 2 integer method, which is guaranteed to
> >> > be machine-unique:  unixtime and instance increment, which, as
> >> > long as the daemon isn't constantly restarting, is fine.  To
> >> > add network uniqueness, the addition of a third integer should
> >> > be sufficient:  the 32-bit integer representation of the IP
> >> > address. Oddly, that's 96 bits, 32 less than MD5, yet it's
> >> > guaranteed to be unique for at least the next 30 years.
> >>
> >> What's wrong with using a GUID?
> >
> >Formulated how?  I just explained how you could formulate one,
> > which should be sufficient for an enterprising soul to code (even
> > if that enterprising soul is me).
>
> Why not use uuid_generate?

Because uuid_generate suffers from the same problems as MD5:
that is, because it is not based upon an algorithm which guarantees
uniqueness, while it is random, there is the same probability of
collisions as with MD5 (a probability which increases over time).

-- 
Tilghman



More information about the asterisk-dev mailing list