summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 5b5ae7f273..e55e4e7ad4 100644
--- a/random.c
+++ b/random.c
@@ -506,7 +506,7 @@ fill_random_seed(unsigned int seed[DEFAULT_SEED_CNT])
|O_NOCTTY
#endif
)) >= 0) {
- rb_update_max_fd(fd);
+ rb_fd_set_cloexec(fd);
if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
if (read(fd, seed, DEFAULT_SEED_LEN) < DEFAULT_SEED_LEN) {
/* abandon */;