Re: Problem with gmp_randinit_set

2017-02-13 Thread Torbjörn Granlund
gmp_randinit_set(b, a); gmp_randseed_ui(b, 123456); /* crashes */ AFAICT this is a gmp bug, but I don't rule out the possibility that it's a user bug. This looks like a GMP bug. I never looked properly through the GMP PRNG code, and looking at it now I don't immediately

Problem with gmp_randinit_set

2017-02-13 Thread sisyphus1
Hi, The following program crashes for me on MS Windows 7, gmp-6.1.2, when the line "gmp_randseed_ui(b, 123456);" is executed. I built gmp in the MSYS2 shell using gcc version 5.3.0 (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project). Configure command was: ./configure CC="gcc