Hello,
When I run this one-line script on my droplet:
<?php
echo base64_encode( mcrypt_create_iv( 32 ) );
?>
it takes more than 10 minutes to finish. Which is weird since on other servers, it give a response instantly.
Any idea how I can make it run fast?
Thanks,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I found the answer here: http://stackoverflow.com/questions/11173803/mcrypt-dev-random-freezes-but-mcrypt-dev-urandom-works
I just ran that on my droplet, and it took less than 1 second. Just a regular php install.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.