updates.
[crypto.git] / lib / silcmath / silcmath.h
index d9233d30690fd1deae81f2acd0ab4db2b438ae3e..f4b90fb243689df624f756211615e6510187bf7c 100644 (file)
@@ -31,6 +31,8 @@
 #ifndef SILCMATH_H
 #define SILCMATH_H
 
+#include "silcrng.h"
+
 /****f* silcmath/SilcMathAPI/silc_math_gen_prime
  *
  * SYNOPSIS
  *    (r.joosten@pijnenburg.nl) for such a good help with prime tests. 
  *
  *    If argument verbose is TRUE this will display some status information
- *    about the progress of generation.
+ *    about the progress of generation.  If the `rng' is NULL then global
+ *    RNG is used, if non-NULL then `rng' is used to generate the random
+ *    number number.
  *
  ***/
-bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose);
+bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose,
+                        SilcRng rng);
 
 /****f* silcmath/SilcMathAPI/silc_math_prime_test
  *