diff options
author | Franck Bui <fbui@suse.com> | 2022-10-19 15:28:27 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2022-10-21 14:49:53 +0200 |
commit | 141d1da021514be2cc7e7a903fa83b11f6054db6 (patch) | |
tree | f57625102b6735f1f6ea75b17daa7309282eb814 /src/random-seed | |
parent | 249d31b00a42aa016639bc0e9d708803d26f8f8f (diff) | |
download | systemd-141d1da021514be2cc7e7a903fa83b11f6054db6.tar.gz |
random-seed: make one more use of random_write_entropy()
No functional change.
Diffstat (limited to 'src/random-seed')
-rw-r--r-- | src/random-seed/random-seed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 569b916f4a..d94005bdde 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -197,7 +197,7 @@ static int run(int argc, char *argv[]) { if (r < 0) log_debug_errno(r, "Failed to get machine ID, ignoring: %m"); else { - r = loop_write(random_fd, &mid, sizeof(mid), false); + r = random_write_entropy(random_fd, &mid, sizeof(mid), /* credit= */ false); if (r < 0) log_debug_errno(r, "Failed to write machine ID to /dev/urandom, ignoring: %m"); } |