naruse 6545327e24 * lib/securerandom.rb (gen_random): to avoid blocking on Windows.
On Windows OpenSSL RAND_bytes (underlying implementation is
  RAND_poll in crypto/rand/rand_win.c) may be blocked at
  NetStatisticsGet.
  https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues
  Instead of this, use Random.raw_seed directory (whose implementation
  CryptGenRandom is one of the source of
  entropy of RAND_poll on Windows).
  https://wiki.openssl.org/index.php/Random_Numbers
  Note: CryptGenRandom function is PRNG and doesn't check its entropy,
  so it won't block. [Bug #12139]
  https://msdn.microsoft.com/ja-jp/library/windows/desktop/aa379942.aspx
  https://tools.ietf.org/html/rfc4086#section-7.1.3
  https://eprint.iacr.org/2007/419.pdf
  http://www.cs.huji.ac.il/~dolev/pubs/thesis/msc-thesis-leo.pdf

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-17 06:01:11 +00:00
..
2016-02-21 04:57:57 +00:00
2016-02-28 11:28:59 +00:00
2016-02-12 02:50:09 +00:00
2016-02-13 08:31:12 +00:00
2015-12-23 03:43:23 +00:00
2016-03-01 02:26:44 +00:00
2016-02-19 14:38:28 +00:00
2015-12-23 03:43:23 +00:00
2016-03-08 15:07:05 +00:00
2016-02-14 08:32:15 +00:00
2016-02-06 11:51:40 +00:00
2015-12-23 03:43:23 +00:00
2015-12-18 15:46:50 +00:00
2015-12-23 03:43:23 +00:00