UNIQID alternative : <p>I'm looking to generate a UNIQUE random code.</p>

<p>When you use uniqid(), result is based on time, example:
if user created ID yesterday at 12:12:35 and another user create a new ID today at same time, ID are identical because based on 24 hour loop time.</p>

<p>I'm tinking about using microtime in this way</p>

<pre><code>// create random based on unix epoch
$random = round(microtime(true) * 1000);
</code></pre>

<p>In this way can I grant uniqueless of generated IDs?</p>
