[PATCH] random/jitterentropy: fix USE_JENT == JENT_USES_GETTIME code path
Jussi Kivilinna
jussi.kivilinna at iki.fi
Thu Jul 23 21:49:05 CEST 2020
* random/jitterentropy-base-user.h (jent_get_nstime): Use 'tv' variable
instead of non-existing 'time'.
--
GnuPG-bug-id: 4966
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
random/jitterentropy-base-user.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/random/jitterentropy-base-user.h b/random/jitterentropy-base-user.h
index 75dd7681..8a8dbd55 100644
--- a/random/jitterentropy-base-user.h
+++ b/random/jitterentropy-base-user.h
@@ -86,9 +86,9 @@ jent_get_nstime(u64 *out)
* not rely on that extra little entropy. */
if (!clock_gettime (CLOCK_REALTIME, &tv))
{
- tmp = time.tv_sec;
+ tmp = tv.tv_sec;
tmp = tmp << 32;
- tmp = tmp | time.tv_nsec;
+ tmp = tmp | tv.tv_nsec;
}
else
tmp = 0;
--
2.25.1
More information about the Gcrypt-devel
mailing list