|
From: | Dr. Adam J. Elbirt |
Subject: | Help with Random Numbers |
Date: | Wed, 28 Nov 2007 13:39:34 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) |
I'm running into two problems related to the use of the mpz_urandomb
function: 1. I always get the same number. Sample code: mpz_init(modulus); mpz_init(exponent_256); for(n=0; n<1000; n++)
-- Dr. Adam J. Elbirt Director - Information Security Laboratory Associate Director - Center for Network and Information Security Assistant Professor Department of Computer Science One University Avenue 215 Olsen Hall Lowell, MA 01854 address@hidden address@hidden 978-934-3328 Office 978-934-3551 FAX http://faculty.uml.edu/aelbirt |
[Prev in Thread] | Current Thread | [Next in Thread] |