Fixes: #2452 When /dev/random runs out of entropy, it blocks the mcrypt_create_iv function