From 07c670db6f2cd24ba0da03e14c390ca0676e44d1 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 5 Feb 2010 15:04:38 +0000 Subject: * random.c (fill_random_seed): don't use O_NOFOLLOW because /dev/urandom is a symlink in OpenSolaris. * lib/securerandom.rb (SecureRandom.random_bytes: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/securerandom.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/securerandom.rb b/lib/securerandom.rb index ee9be9bde4..2676c3b536 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -57,7 +57,6 @@ module SecureRandom flags = File::RDONLY flags |= File::NONBLOCK if defined? File::NONBLOCK flags |= File::NOCTTY if defined? File::NOCTTY - flags |= File::NOFOLLOW if defined? File::NOFOLLOW begin File.open("/dev/urandom", flags) {|f| unless f.stat.chardev? -- cgit v1.2.3