aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-02-18 09:43:55 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-02-18 09:43:55 +0100
commit51ca8e68863efa6d6a5afacb9cc43f64624dea78 (patch)
tree0aca867fa4c2f4f9faa7b194ac3de5988860bd86 /bin
parent8aed9f8cdfa779eb36be0dcb97916e03098f6819 (diff)
downloadmkinitcpio-ykfde-51ca8e68863efa6d6a5afacb9cc43f64624dea78.tar.gz
mkinitcpio-ykfde-51ca8e68863efa6d6a5afacb9cc43f64624dea78.tar.zst
do not use hardcoded size
Diffstat (limited to 'bin')
-rw-r--r--bin/ykfde.c2
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;
}