RAND: make mp_digit get_urnd_int_small() static
Does not seem to qualify for external API function.
This commit is contained in:
parent
2def2061db
commit
e8ec6103aa
@ -33,6 +33,11 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/*
|
||||
* 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;
|
||||
|
@ -28,8 +28,6 @@
|
||||
#include <tompoly.h>
|
||||
|
||||
|
||||
mp_digit get_urnd_int_small(int *sign);
|
||||
|
||||
pb_poly *get_urnd_poly_small(pqc_context *ctx);
|
||||
|
||||
#endif /* NTRU_RAND_H */
|
||||
|
Loading…
Reference in New Issue
Block a user