diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c index fb85d75a8b..480e9b28f0 100644 --- a/src/core/nm-core-utils.c +++ b/src/core/nm-core-utils.c @@ -2814,7 +2814,10 @@ _host_id_read(guint8 **out_host_id, gsize *out_host_id_len) int base64_save = 0; gsize len; - nm_random_get_bytes_full(rnd_buf, sizeof(rnd_buf), &success); + if (nm_random_get_crypto_bytes(rnd_buf, sizeof(rnd_buf)) < 0) + nm_random_get_bytes_full(rnd_buf, sizeof(rnd_buf), &success); + else + success = TRUE; /* Our key is really binary data. But since we anyway generate a random seed * (with 32 random bytes), don't write it in binary, but instead create