<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New">Hi,</FONT></DIV>
<DIV><FONT face="Courier New">I need to generate random numbers of 512
bits.</FONT></DIV>
<DIV><FONT face="Courier New">I use the following code :</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"><STRONG>mpz_t p;</STRONG></FONT></DIV>
<DIV><FONT face="Courier New"><STRONG>gmp_randstate_t
rstate;</STRONG></FONT></DIV>
<DIV><FONT face="Courier New"><STRONG>mpz_init2(p,512);</STRONG></FONT></DIV>
<DIV><FONT face="Courier New"><STRONG>gmp_randinit(rstate,GMP_RAND_ALG_LC,
32);</STRONG></FONT></DIV>
<DIV><FONT face="Courier New"><STRONG>mpz_urandomb(p, rstate, 512);
</STRONG></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">The numbers are generated but the problem is that
if I run several times this code it produces the SAME sequence of
random numbers. </FONT></DIV>
<DIV><FONT face="Courier New">How can I solve this
problem? </FONT></DIV></BODY></HTML>