summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-05 15:04:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-05 15:04:38 +0000
commit07c670db6f2cd24ba0da03e14c390ca0676e44d1 (patch)
treee4d3486cc937dfd2b1816f9845177176cd7f724c /random.c
parentfb8a3652d272e7421b1466d7c2045d79bb018218 (diff)
* 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
Diffstat (limited to 'random.c')
-rw-r--r--random.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/random.c b/random.c
index c0e8912955..92ef3fcae5 100644
--- a/random.c
+++ b/random.c
@@ -280,9 +280,6 @@ random_seed()
#ifdef O_NOCTTY
|O_NOCTTY
#endif
-#ifdef O_NOFOLLOW
- |O_NOFOLLOW
-#endif
)) >= 0) {
if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
read(fd, seed, seed_len);