Skip to content

Commit 926bf9e

Browse files
committed
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
1 parent 5809141 commit 926bf9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mp_rand_source.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "tommath_private.h"
2-
#ifdef MP_RAND_C
2+
/* MP_RAND_C relates to mp_rand.c, MP_PRIME_RAND_C relates tp mp_prime_rand.c
3+
Both use s_mp_rand_source */
4+
#if defined(MP_RAND_C) || defined(MP_PRIME_RAND_C)
35
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
46
/* SPDX-License-Identifier: Unlicense */
57

0 commit comments

Comments
 (0)