What entropy sources are available on the hero?

I would like to deploy an application on heroku that should be able to generate cryptographically secure random numbers. What sources of entropy can I use?

+7
source share
1 answer

Your Heroku speaker is basically a Ubuntu VM server, so you should have access to /dev/random and /dev/urandom like any other Linux-based operating system.

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

+3
source

All Articles