Skip to content

Commit

Permalink
Make sure s_mp_rand_source is defined for all its uses
Browse files Browse the repository at this point in the history
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 libtom#582
  • Loading branch information
levitte committed Nov 19, 2024
1 parent 5809141 commit 926bf9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mp_rand_source.c
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down

0 comments on commit 926bf9e

Please sign in to comment.