aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-02-18 09:40:32 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-02-18 09:40:32 +0100
commit8aed9f8cdfa779eb36be0dcb97916e03098f6819 (patch)
treeb353a1c96900141142b344544f5503cb411bc04d
parentc33a043cb6a9ff5431d050a095f7900d9303a6e1 (diff)
downloadmkinitcpio-ykfde-8aed9f8cdfa779eb36be0dcb97916e03098f6819.tar.gz
mkinitcpio-ykfde-8aed9f8cdfa779eb36be0dcb97916e03098f6819.tar.zst
replace getrandom() with getentropy()
-rw-r--r--bin/ykfde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 2dfd5d7..bad974f 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -197,7 +197,7 @@ int main(int argc, char **argv) {
return EXIT_SUCCESS;
/* initialize random seed */
- if (getrandom(&seed, 4, GRND_RANDOM) != 4) {
+ if (getentropy(&seed, 4) != 0) {
fprintf(stderr, "Initializing random seed failed.\n");
goto out10;
}