We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e7464 commit db3ecc4Copy full SHA for db3ecc4
src/sage/rings/polynomial/polynomial_element.pyx
@@ -2585,7 +2585,11 @@ cdef class Polynomial(CommutativePolynomial):
2585
if ring not in FiniteFields():
2586
rs = self.roots(ring=ring, multiplicities=False)
2587
if rs:
2588
- return choice(rs)
+ # TODO: this has been deterministic and changing this to be random
2589
+ # breaks many doctests. For now we leave it deterministic but you
2590
+ # could change it to choice(rs). This mainly breaks examples over
2591
+ # of elliptic curve stuff over number fields
2592
+ return rs[0]
2593
raise ValueError(f"polynomial {self} has no roots")
2594
2595
# Ensure that a provided ring is appropriate for the function. From the
0 commit comments