mp.h: define mpnrand

This commit is contained in:
glenda 2015-08-27 13:34:02 +00:00
parent 07b245943a
commit d8a1f1a647

View file

@ -38,6 +38,8 @@ void mpassign(mpint *old, mpint *new);
/* random bits */
mpint* mprand(int bits, void (*gen)(uchar*, int), mpint *b);
/* return uniform random [0..n-1] */
mmpint* mpnrand(mpint *n, void (*gen)(uchar*, int), mpint *b)
/* conversion */
mpint* strtomp(char*, char**, int, mpint*); /* ascii */