From 74f59b9a90b0a4aa0f342c197ea53cdc79135c36 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Tue, 11 Jan 2022 02:03:53 +0100 Subject: [PATCH] Fixed Python 3.10 deprecation warning The randrange function will soon only accept integer arguments, so I switched to integer division. --- tests/gen/elligator-direct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gen/elligator-direct.py b/tests/gen/elligator-direct.py index 8b9b253..a0d38e2 100755 --- a/tests/gen/elligator-direct.py +++ b/tests/gen/elligator-direct.py @@ -81,4 +81,4 @@ direct(fe(0), 3) # representative 0 maps to point (0, 0) seed(12345) for i in range(50): - direct(fe(randrange(0, (p-1)/2)), i % 4) + direct(fe(randrange(0, (p-1)//2)), i % 4) -- 2.47.3