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.
stevenh512
source share