title: Can we use uniqid() to generate a unique Salt in PHP
body: <p>I'm using bcrypt to hash my passwords. But I would like to use some Salt with it as well. Can I use the uniqid() function to generate a unique Salt for every user? Or may be something with more entropy like </p>
  
  <pre><code>uniqid('', true);
  </code></pre>
  
  <p>I do not understand many of the more complex ways of generating Salts. like using for loops and many different functions.</p>
  
  <p>Thank you.</p>