I would like to deploy an application to heroku which needs to be able to generate cryptographically secure random numbers. What entropy sources can I use?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your Heroku dyno is basically an Ubuntu Server VM, so you should have access to
/dev/randomand/dev/urandomlike you would on any other Linux-based OS.If you’re using Ruby/Rails, you should probably be using
SecureRandom(orActiveSupport::SecureRandomfor older versions of Ruby and Rails) for this.