summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}