From: Loup Vaillant Date: Tue, 11 Jan 2022 01:03:53 +0000 (+0100) Subject: Fixed Python 3.10 deprecation warning X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=74f59b9a90b0a4aa0f342c197ea53cdc79135c36;p=Monocypher.git Fixed Python 3.10 deprecation warning The randrange function will soon only accept integer arguments, so I switched to integer division. --- 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)