[ANN] unicorn 3.6.0 - small fixes, PRNG workarounds

Eric Wong normalperson at yhbt.net
Tue Apr 26 19:17:30 EDT 2011

Eric Wong <normalperson at yhbt.net> wrote:
> If you're too lazy to upgrade, you can just do this in your after_fork
> hooks:
>   after_fork do |server,worker|
>     tmp = srand
>     OpenSSL::Random.seed(tmp.to_s) if defined?(OpenSSL::Random)
>   end

Do this instead if you're too lazy to upgrade:

  after_fork do |server,worker|
    OpenSSL::Random.seed(rand.to_s) if defined?(OpenSSL::Random)

3.6.1 has a similar fix.  Thanks to ghazel for reporting the bug.

Eric Wong

More information about the mongrel-unicorn mailing list