Random Numbers
Steven Potter
Steven.Potter@comcast.net
Sun, 13 Jul 2003 21:02:02 -0700
Hello,
I have a question in regards to utilizing the random number generators
with GMP. I've read over the manual and I'm still stumped as to how to
initialize, and use the random number generating functions. The way I
understand it is I call gmp_randinit_default() and pass in some
parameter, which I can't find any documentation on, (perhaps I skipped
it somewhere), then I call one of the mpz_random functions to get a
number correct?
Could anyone give me a code snippet of how to properly initialize and
obtain a random number with GMP. I'm trying to get a random number for
some cryptographic software I'm working on for school.
Thanks,
Steven Potter