properly reseed OpenSSL::Random after forking
commit34f7dbd1b7e087bc8c86029496fd8daa7dc58441
authorEric Wong <normalperson@yhbt.net>
Tue, 26 Apr 2011 23:01:31 +0000 (26 16:01 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 26 Apr 2011 23:01:31 +0000 (26 16:01 -0700)
treeda174bb12cd85a2adec78d20851f73894fe918a1
parent2aabf90ca53b31edef6c2b63006c33374840c816
properly reseed OpenSSL::Random after forking

Using the return value of Kernel#srand actually made the
problem worse.  Using the value of Kernel#rand is required
to actually get a random value to seed the OpenSSL PRNG.

Thanks to ghazel for the bug report!
lib/unicorn/http_server.rb