Small old bug in mpz_powm

Niels Möller nisse at
Sun Dec 8 21:27:19 UTC 2019

Marco Bodrato <bodrato at> writes:

> Il 2019-12-08 21:21 tg at ha scritto:
>> I think we should improve the testing code to trigger this bug!
> I wrote a single test with fixed parameters, maybe we should better
> add some randomness..

Do any of the existing randomized tests for mpz_powm ever test e == 1?


Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list