diff options
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */; |