From 926bf9ee7fa28e758216eead7f749802e96825db Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 19 Nov 2024 10:38:06 +0100 Subject: [PATCH] Make sure s_mp_rand_source is defined for all its uses mp_prime_rand.c uses s_mp_rand_source as well, so ensure that the latter is defined on the conditions of the former as well. Fixes #582 --- mp_rand_source.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mp_rand_source.c b/mp_rand_source.c index e9e876948..85ded746c 100644 --- a/mp_rand_source.c +++ b/mp_rand_source.c @@ -1,5 +1,7 @@ #include "tommath_private.h" -#ifdef MP_RAND_C +/* MP_RAND_C relates to mp_rand.c, MP_PRIME_RAND_C relates tp mp_prime_rand.c + Both use s_mp_rand_source */ +#if defined(MP_RAND_C) || defined(MP_PRIME_RAND_C) /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */