From: nagachika00@... Date: 2016-04-22T15:30:32+00:00 Subject: [ruby-core:75139] [Ruby trunk Bug#12139] return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows. Issue #12139 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: WONTFIX, 2.2: DONE, 2.3: REQUIRED to 2.1: WONTFIX, 2.2: DONE, 2.3: DONE ruby_2_3 r54713 merged revision(s) 54144,54699. ---------------------------------------- Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows. https://bugs.ruby-lang.org/issues/12139#change-58270 * Author: Justin Ward * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.2.4 * Backport: 2.1: WONTFIX, 2.2: DONE, 2.3: DONE ---------------------------------------- I have been a windows dev for a while now. I have never solved this rails startup issue. Running one Rspec test takes rails 22 seconds to load on my PC. When I (temporarily) comment out the line in securerandom.rb and replace it with a hardcoded return the startup time is reduced to 10 seconds. ```ruby #return OpenSSL::Random.random_bytes(n) return "\xD3\x04F\f0\xD6{G\xB9\x81" ``` I can duplicate this on a windows 7 and windows 10 PC. I have the lastest version of OpenSSL (1.02) installed. Tickets like this have been reported before, but they get closed without being solved for unknown reasons. Please share the joy of Ruby with us PC users :). See this more more info: http://stackoverflow.com/questions/29984838/openssl-causing-very-slow-rails-boot-time-on-windows/35749120#35749120 -- https://bugs.ruby-lang.org/ Unsubscribe: