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