summaryrefslogtreecommitdiff
path: root/src/firstboot
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-07 18:27:57 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-08 09:44:27 +0100
commit3335dc2d7591fa4e5ae28efa9a2ab35fd5ba1951 (patch)
tree9aece79b3bd3c4ea6e4331bbfe98246604a7e915 /src/firstboot
parent8d2411f69348a081419c2fb7cddbe1970cf3eac5 (diff)
downloadsystemd-3335dc2d7591fa4e5ae28efa9a2ab35fd5ba1951.tar.gz
random-util: rename acquire_random_bytes() → genuine_random_bytes()
It's more descriptive, since we also have a function random_bytes() which sounds very similar. Also rename pseudorandom_bytes() to pseudo_random_bytes(). This way the two functions are nicely systematic, one returning genuine random bytes and the other pseudo random ones.
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index c5deb66edf..96260fab29 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -647,7 +647,7 @@ static int process_root_password(void) {
if (!arg_root_password)
return 0;
- r = acquire_random_bytes(raw, 16, true);
+ r = genuine_random_bytes(raw, 16, true);
if (r < 0)
return log_error_errno(r, "Failed to get salt: %m");