| 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. |
#include <nttl/randomPrime.h> ... long p = RandomPrime( 7 ); |