add missing parameter name in prototype
This commit is contained in:
parent
be7ee4d025
commit
cc703a849b
@ -161,7 +161,7 @@ static int s_mp_rand_source_platform(void *p, size_t n)
|
||||
#endif
|
||||
}
|
||||
|
||||
int (*s_rand_source)(void *, size_t) = s_mp_rand_source_platform;
|
||||
int (*s_rand_source)(void *out, size_t size) = s_mp_rand_source_platform;
|
||||
|
||||
void mp_rand_source(int (*get)(void *out, size_t size))
|
||||
{
|
||||
|
@ -306,7 +306,7 @@ int mp_rand(mp_int *a, int digits);
|
||||
/* makes a pseudo-random small int of a given size */
|
||||
MP_DEPRECATED(mp_rand) int mp_rand_digit(mp_digit *r);
|
||||
/* use custom random data source instead of source provided the platform */
|
||||
void mp_rand_source(int source(void *, size_t));
|
||||
void mp_rand_source(int source(void *out, size_t size));
|
||||
|
||||
#ifdef MP_PRNG_ENABLE_LTM_RNG
|
||||
# warning MP_PRNG_ENABLE_LTM_RNG has been deprecated, use mp_rand_source instead.
|
||||
|
@ -70,7 +70,7 @@ extern void MP_FREE(void *mem, size_t size);
|
||||
#define MP_MAXFAST (int)(1u << (MP_SIZEOF_BITS(mp_word) - (2u * (size_t)MP_DIGIT_BIT)))
|
||||
|
||||
/* random number source */
|
||||
extern int (*s_rand_source)(void *, size_t);
|
||||
extern int (*s_rand_source)(void *out, size_t size);
|
||||
|
||||
/* lowlevel functions, do not call! */
|
||||
int s_mp_add(const mp_int *a, const mp_int *b, mp_int *c);
|
||||
|
Loading…
Reference in New Issue
Block a user