libuuid generates one of several types of uuid.<div><br></div><div>One simply makes all bits random from /dev/urandom. Collisions are unlikely but still possible.</div><div><br></div><div>The time one allocates some bits to the mac and others to the unix timestamp, then the rest is sequential. That one means different servers will never generate collisions (assuming all use the same scheme), and collisions can&#39;t happen within the program on the server. That can be made between multiple programs using the library too.</div>
<div><br></div><div><span style="font-family:&#39;.HelveticaNeueUI&#39;;white-space:nowrap"><a href="http://linux.die.net/man/3/uuid_generate">http://linux.die.net/man/3/uuid_generate</a></span><br><div><br></div><div>Personally I would prefer the later but for privacy reasons (the mac) the first is the libraries default<span></span>. <span style>Not sure which FS uses...</span></div>
<div><br></div><div><br></div><div><br><br>On Sunday, May 19, 2013, Jeff Leung  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It depends on what implementation of the UUID library the build system has detected.<br><br>If you’ve had the libuuid from e2fsprogs (Linux at the very least) installed and headers present, the build system will link against that. That implementation generates random UUID’s for the most part. If you didn’t have libuuid and its headers installed, the build system will use APR’s own implementation for generating the UUID’s; those generated UUID’s are known to be sequential in nature.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> <a href="javascript:_e({}, &#39;cvml&#39;, &#39;freeswitch-users-bounces@lists.freeswitch.org&#39;);" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="javascript:_e({}, &#39;cvml&#39;, &#39;freeswitch-users-bounces@lists.freeswitch.org&#39;);" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Telecube - John<br>
<b>Sent:</b> Sunday, May 19, 2013 6:58 AM<br><b>To:</b> <a href="javascript:_e({}, &#39;cvml&#39;, &#39;freeswitch-users@lists.freeswitch.org&#39;);" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> [Freeswitch-users] UUID - how unique is it?<u></u><u></u></span></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">How unique is uuid in the cdr records?<br><br>Coming from asterisk where uid is about as unique as a black bowling ball....<br><br>Can I count on uuid to be totally unique  in my billing records?<u></u><u></u></p>
<div><p class="MsoNormal">-- <br>Regards,<br>John Matich<br>Telecube Pty Ltd<br><a href="http://www.telecube.com.au" target="_blank">www.telecube.com.au</a><br>Ph: 13CUBE (132823)<u></u><u></u></p></div></div></div></div>
</blockquote></div></div>