From e8ec6103aa604f88d688d47955761c6250a6d655 Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 14 Apr 2014 23:45:38 +0200 Subject: [PATCH] RAND: make mp_digit get_urnd_int_small() static Does not seem to qualify for external API function. --- src/rand.c | 7 ++++++- src/rand.h | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/rand.c b/src/rand.c index db61d48..a79e2d9 100644 --- a/src/rand.c +++ b/src/rand.c @@ -33,6 +33,11 @@ #include #include +/* + * static declarations + */ +static mp_digit get_urnd_int_small(int *sign); + /** * Gets randomly a small integer @@ -41,7 +46,7 @@ * @param sign stores the signness [out] * @return random small integer */ -mp_digit get_urnd_int_small(int *sign) +static mp_digit get_urnd_int_small(int *sign) { int random_data; mp_digit random_int; diff --git a/src/rand.h b/src/rand.h index 41206bd..66f2a1b 100644 --- a/src/rand.h +++ b/src/rand.h @@ -28,8 +28,6 @@ #include -mp_digit get_urnd_int_small(int *sign); - pb_poly *get_urnd_poly_small(pqc_context *ctx); #endif /* NTRU_RAND_H */