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?


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.

链接地址: http://www.djcxy.com/p/10618.html

上一篇: Phonegap(和jQuery Mobile)?

下一篇: Heroku有哪些熵源可用?