diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-18 09:40:32 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-02-18 09:40:32 +0100 |
commit | 8aed9f8cdfa779eb36be0dcb97916e03098f6819 (patch) | |
tree | b353a1c96900141142b344544f5503cb411bc04d | |
parent | c33a043cb6a9ff5431d050a095f7900d9303a6e1 (diff) | |
download | mkinitcpio-ykfde-8aed9f8cdfa779eb36be0dcb97916e03098f6819.tar.gz mkinitcpio-ykfde-8aed9f8cdfa779eb36be0dcb97916e03098f6819.tar.zst |
replace getrandom() with getentropy()
-rw-r--r-- | bin/ykfde.c | 2 |
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; } |