From bc11ea758541742be441e2c8efbd5b5962a8c6c1 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 9 Apr 2017 00:32:57 +0200 Subject: [PATCH] don't include static function in callgraph --- bn_mp_rand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bn_mp_rand.c b/bn_mp_rand.c index fc98e52..073abcc 100644 --- a/bn_mp_rand.c +++ b/bn_mp_rand.c @@ -28,7 +28,7 @@ #endif /* makes a pseudo-random int of a given size */ -static mp_digit mp_gen_random(void) +static mp_digit s_gen_random(void) { mp_digit d = 0, msk = 0; do { @@ -54,7 +54,7 @@ mp_rand (mp_int * a, int digits) /* first place a random non-zero digit */ do { - d = mp_gen_random(); + d = s_gen_random(); } while (d == 0); if ((res = mp_add_d (a, d, a)) != MP_OKAY) { @@ -66,7 +66,7 @@ mp_rand (mp_int * a, int digits) return res; } - if ((res = mp_add_d (a, mp_gen_random(), a)) != MP_OKAY) { + if ((res = mp_add_d (a, s_gen_random(), a)) != MP_OKAY) { return res; } }