s2-mod/deps/libtommath/mp_rand_source.c
2025-04-28 23:30:04 -04:00

13 lines
344 B
C

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