]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/libcrypt-util.c
Simplify random number selection
[thirdparty/systemd.git] / src / shared / libcrypt-util.c
index 0d72032f53f9a22f6af79e6dc9f7ea98461a150d..81e6f1754c4f8973fb3d5cc99f0a29dbe7d151e6 100644 (file)
@@ -76,7 +76,7 @@ int make_salt(char **ret) {
         log_debug("Generating fallback salt for hash prefix: $6$");
 
         /* Insist on the best randomness by setting RANDOM_BLOCK, this is about keeping passwords secret after all. */
-        r = genuine_random_bytes(raw, sizeof(raw), RANDOM_BLOCK);
+        r = crypto_random_bytes(raw, sizeof(raw));
         if (r < 0)
                 return r;