Thank you guys. your feedbacks are very helpful.

It turns out one way to achieve this is to generate a random number and
conduct primality test by using "IsPrime()" function available in
"nbtheory.h".

On Wed, Nov 10, 2010 at 1:50 AM, Peter Bell
<[email protected]>wrote:

> See http://en.wikipedia.org/wiki/Generating_primes for some hints.
>
> Peter.
>
> > -----Original Message-----
> > From: [email protected] [mailto:cryptopp-
> > [email protected]] On Behalf Of Saeed Rasooli
> > Sent: Wednesday, 10 November 2010 5:14 PM
> > To: Crypto++ Users
> > Subject: Re: How to generate a random PRIME number
> >
> The information contained in this email message and any attachments may be
> confidential and may also be the subject to legal professional privilege. If
> you are not the intended recipient, any use, interference with, disclosure
> or copying of this material is unauthorised and prohibited. If you have
> received this email in error, please immediately advise the sender by return
> email and delete the information from your system.
>
> --
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> [email protected].
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com.
>



-- 
-Xiaohui Liu

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to