dep-libtommath/s_mp_rand_source.c
Steffen Jaeckel 48a356883d Split up mp_rand_source.c
In order to make `helper.pl` happy, change the ternary operator to an
if-else statement, otherwise it won't properly generate `tommath_class.h`.

This fixes #582
This closes #583

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-01-30 14:59:53 +01:00

7 lines
245 B
C

#include "tommath_private.h"
#ifdef S_MP_RAND_SOURCE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
mp_err(*s_mp_rand_source)(void *out, size_t size) = s_mp_rand_platform;
#endif