mp.h: define mpnrand
This commit is contained in:
parent
07b245943a
commit
d8a1f1a647
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue