summaryrefslogtreecommitdiff
path: root/src/random-seed
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2022-10-19 15:28:27 +0200
committerFranck Bui <fbui@suse.com>2022-10-21 14:49:53 +0200
commit141d1da021514be2cc7e7a903fa83b11f6054db6 (patch)
treef57625102b6735f1f6ea75b17daa7309282eb814 /src/random-seed
parent249d31b00a42aa016639bc0e9d708803d26f8f8f (diff)
downloadsystemd-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.c2
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");
}