Solves issue #301.
There was indeed a bug in the random generation from seed: only values and not positions where controlled by the 'seed' variable.
Also, yes minpoly is probabilistic, so the test was failing sometimes.
This PR changes this to make the test only check whether the obtained polynomial is an annihilator, or just a factor of the minimal (or characteristic) polynomial.
Solves issue #301. There was indeed a bug in the random generation from seed: only values and not positions where controlled by the 'seed' variable. Also, yes minpoly is probabilistic, so the test was failing sometimes. This PR changes this to make the test only check whether the obtained polynomial is an annihilator, or just a factor of the minimal (or characteristic) polynomial.