From f108889a9a2a07cdc8f4d74723f0c7ff7094cfb7 Mon Sep 17 00:00:00 2001 From: czurnieden Date: Tue, 23 May 2023 23:35:39 +0200 Subject: [PATCH] Correct sanitation of mp_prime_rand --- mp_prime_rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp_prime_rand.c b/mp_prime_rand.c index c5cebbda7..5351aefe4 100644 --- a/mp_prime_rand.c +++ b/mp_prime_rand.c @@ -26,7 +26,7 @@ mp_err mp_prime_rand(mp_int *a, int t, int size, int flags) mp_err err; /* sanity check the input */ - if ((size <= 1) || (t <= 0)) { + if (size <= 1) { return MP_VAL; }