random-seed: no need to pass 'mode' argument when opening /dev/urandom

The open() call is not supposed to create /dev/urandom.

No functional change.
This commit is contained in:
Franck Bui
2022-10-20 08:52:10 +02:00
parent 205138d88a
commit 4620c0af5d

View File

@@ -248,7 +248,7 @@ static int run(int argc, char *argv[]) {
} else
write_seed_file = true;
random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY);
if (random_fd < 0)
return log_error_errno(errno, "Failed to open /dev/urandom: %m");