NTTL Function - RandomPrime

Description
Generate a random prime number.
Header
<nttl/randomPrime.h>
Signature
template<class T>
void
RandomPrime( T *prime, size_t digits, size_t security = 20 )
Parameters
Name Type Description
prime T * Pointer to the variable that will contain the generated prime.
digits size_t The desired size of the generated prime.  This number is the number of decimal digits.
security size_t (optional)  The security parameter for the primality testing algorithm.   This is passed directly to the IsPrime function.   If this parameter is omitted, it defaults to 20.
Returns
( none )
Example
#include <nttl/randomPrime.h>
...
long p = RandomPrime( 7 );