diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2018-05-07 15:48:37 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2018-05-22 15:23:06 +0200 |
commit | a496e4c93036b5d1d37d607449a340d61533e8e5 (patch) | |
tree | 930953cb6ee131b293a90089fb8ad730c67d1d9a /core/lib | |
parent | 9668cb1ec2d7281308eff80a4c7c30952c20745d (diff) |
mpa_desc.c: rename rand() to mpa_rand()
In mpa_desc.c rename rand() to mpa_rand() to avoid conflict with the C99
function rand().
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/lib')
-rw-r--r-- | core/lib/libtomcrypt/src/mpa_desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/libtomcrypt/src/mpa_desc.c b/core/lib/libtomcrypt/src/mpa_desc.c index 07bc47c3..c896a078 100644 --- a/core/lib/libtomcrypt/src/mpa_desc.c +++ b/core/lib/libtomcrypt/src/mpa_desc.c @@ -581,7 +581,7 @@ static int isprime(void *a, int b, int *c) return CRYPT_OK; } -static int rand(void *a, int size) +static int mpa_rand(void *a, int size) { return mpa_get_random_digits(a, size) != size ? CRYPT_ERROR_READPRNG : CRYPT_OK; @@ -663,6 +663,6 @@ ltc_math_descriptor ltc_mp = { .rsa_keygen = &rsa_make_key, .rsa_me = &rsa_exptmod, #endif - .rand = &rand, + .rand = &mpa_rand, }; |