<no subject>

Tim Van Holder tim.vanholder at anubex.com
Thu Mar 6 09:59:51 CET 2008

On 2008-03-05 23:55, Jim Anderson wrote:
> I've attached the bug report as a plain old text file (UNIX format, of 
> course).
> Since I found this I've got a work around that works for me.
> Jim

The "extra nybble" is just you using "%04x" to print the unsigned
shorts, forcing leading zeroes to be printed. So the exported variable
will alsways print a multiple of 4 digits, regardless of the actual
random value produced.
If you do

     for (i = 0; i < sN1; i++)
         fprintf(stdout, (i == 0) ? "%X" : "%04X", n1[i]);

instead you'll most likely get identical results.

More information about the gmp-bugs mailing list