aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/worker.c2
-rw-r--r--bin/ykfde-cpio.c2
-rw-r--r--bin/ykfde.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/worker.c b/bin/worker.c
index 3c0c7d3..81dc68f 100644
--- a/bin/worker.c
+++ b/bin/worker.c
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2020 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2024 by Christian Hesse <mail@eworm.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/bin/ykfde-cpio.c b/bin/ykfde-cpio.c
index 7e98443..8154b47 100644
--- a/bin/ykfde-cpio.c
+++ b/bin/ykfde-cpio.c
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2020 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2024 by Christian Hesse <mail@eworm.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 52ad370..682e05c 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2020 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2024 by Christian Hesse <mail@eworm.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -304,7 +304,7 @@ int main(int argc, char **argv) {
We generate an array of unsigned int, the use modulo to limit to printable
ASCII characters (32 to 127). */
if ((len = getrandom(challenge_int, CHALLENGELEN * sizeof(unsigned int), GRND_RANDOM|GRND_NONBLOCK)) != CHALLENGELEN * sizeof(unsigned int))
- getrandom((void *)((size_t)challenge_int + len), CHALLENGELEN * sizeof(unsigned int) - len, 0);
+ len += getrandom((void *)((size_t)challenge_int + len), CHALLENGELEN * sizeof(unsigned int) - len, 0);
for (i = 0; i < CHALLENGELEN; i++)
challenge_new[i] = (challenge_int[i] % (127 - 32)) + 32;