Skip to content

Commit

Permalink
Sample from a list instead of a set for python 3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjer authored and oscarbenjamin committed May 11, 2020
1 parent 519443a commit 5f412cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/polys/modulargcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def _modgcd_multivariate_p(f, g, p, degbound, contbound):
d = 0
evalpoints = []
heval = []
points = set(range(p))
points = list(range(p))

while points:
a = random.sample(points, 1)[0]
Expand Down Expand Up @@ -1605,7 +1605,7 @@ def _func_field_modgcd_p(f, g, minpoly, p):
evalpoints = []
heval = []
LMlist = []
points = set(range(p))
points = list(range(p))

while points:
a = random.sample(points, 1)[0]
Expand Down

0 comments on commit 5f412cf

Please sign in to comment.