Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What entropy sources are available on heroku?

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?

like image 679
Tobias Avatar asked Apr 06 '12 19:04

Tobias


1 Answers

Your Heroku dyno is basically an Ubuntu Server VM, so you should have access to /dev/random and /dev/urandom like you would on any other Linux-based OS.

If you're using Ruby/Rails, you should probably be using SecureRandom (or ActiveSupport::SecureRandom for older versions of Ruby and Rails) for this.

like image 58
stevenh512 Avatar answered Oct 17 '22 01:10

stevenh512