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.
This commit is contained in:
Lennart Poettering
2018-11-08 09:44:27 +01:00
parent 8d2411f693
commit 3335dc2d75
5 changed files with 20 additions and 22 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ _public_ int sd_id128_randomize(sd_id128_t *ret) {
assert_return(ret, -EINVAL);
r = acquire_random_bytes(&t, sizeof t, true);
r = genuine_random_bytes(&t, sizeof t, true);
if (r < 0)
return r;