From 51ca8e68863efa6d6a5afacb9cc43f64624dea78 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 18 Feb 2019 09:43:55 +0100 Subject: do not use hardcoded size --- 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 bad974f..e808abe 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 (getentropy(&seed, 4) != 0) { + if (getentropy(&seed, sizeof(unsigned int)) != 0) { fprintf(stderr, "Initializing random seed failed.\n"); goto out10; } -- cgit v1.2.3-70-g09d2