From 8aed9f8cdfa779eb36be0dcb97916e03098f6819 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 18 Feb 2019 09:40:32 +0100 Subject: replace getrandom() with getentropy() --- bin/ykfde.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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; } -- cgit v1.2.3-70-g09d2