title: MCRYPT_DEV_RANDOM freezes but MCRYPT_DEV_URANDOM works
body: <p>I am trying to create an IV with the function:</p>
  
  <pre><code>mcrypt_create_iv(32, MCRYPT_DEV_RANDOM)
  </code></pre>
  
  <p>this causes the script to time out after more than 60 seconds. (maybe more?) but when I use <code>URANDOM</code>, it works fine almost instantly. From what I read it should take about 4 seconds with <code>MCRYPT_DEV_RANDOM</code>, but it is definitely taking too long. There is nothing in the error log.</p>
  
  <p>I have it installed with apache2 and php5 on an ubuntu 12.04 server.</p>
  
  <p>I have run the exact same code on my centos server without issues.</p>