Uniqid returning similar value every time
<p>I'm generating a 5 letter uniqid in PHP this way:</p>

<pre><code>$id = substr(uniqid(),0,5);
</code></pre>

<p>And every single time I call it, I get the value <code>5004b</code>. Why is that happening?</p>

<p>If I remove the <code>substr</code>, the <code>5004b</code> part stays constant while the remaining changes. Isn't this severely reducing the entropy of the GUID being generated?</p>
