diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-18 09:43:55 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-02-18 09:43:55 +0100 |
commit | 51ca8e68863efa6d6a5afacb9cc43f64624dea78 (patch) | |
tree | 0aca867fa4c2f4f9faa7b194ac3de5988860bd86 /bin | |
parent | 8aed9f8cdfa779eb36be0dcb97916e03098f6819 (diff) | |
download | mkinitcpio-ykfde-51ca8e68863efa6d6a5afacb9cc43f64624dea78.tar.gz mkinitcpio-ykfde-51ca8e68863efa6d6a5afacb9cc43f64624dea78.tar.zst |
do not use hardcoded size
Diffstat (limited to 'bin')
-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 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; } |