Pleasing the pylint gods

This commit is contained in:
Miroslav Stampar
2019-05-29 16:42:04 +02:00
parent 95560da7c1
commit 4077cd2342
25 changed files with 74 additions and 75 deletions

View File

@@ -110,7 +110,7 @@ class WichmannHill(random.Random):
period.
"""
if not n >= 0:
if n < 0:
raise ValueError("n must be >= 0")
x, y, z = self._seed
x = int(x * pow(171, n, 30269)) % 30269