mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-15 18:25:53 +00:00
random-seed: fix error message typo
The file node is /dev/urandom, not /dev/random.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
5de0409e54
commit
2a7cccf065
@@ -101,7 +101,8 @@ int main(int argc, char *argv[]) {
|
||||
lseek(seed_fd, 0, SEEK_SET);
|
||||
|
||||
if ((r = loop_write(random_fd, buf, (size_t) r, false)) <= 0)
|
||||
log_error("Failed to write seed to /dev/random: %s", r < 0 ? strerror(errno) : "short write");
|
||||
log_error("Failed to write seed to /dev/urandom: %s",
|
||||
r < 0 ? strerror(errno) : "short write");
|
||||
}
|
||||
|
||||
} else if (streq(argv[1], "save")) {
|
||||
|
||||
Reference in New Issue
Block a user