diff --git a/_version.py b/_version.py index c55bfe39..6c946174 100644 --- a/_version.py +++ b/_version.py @@ -1,2 +1,2 @@ -__version__ = "1.0.5" +__version__ = "1.0.6" diff --git a/particles/generators.py b/particles/generators.py index 5af3cc19..b1084565 100644 --- a/particles/generators.py +++ b/particles/generators.py @@ -551,7 +551,7 @@ def __init__(self, psi, rfbucket, sigma_z=None, epsn_z=None): else: raise ValueError("Can not generate mismatched matched distribution!") - self.seed = np.random.randint(sys.maxint) + self.seed = np.random.randint(np.iinfo(np.int32).max) def psi_for_emittance_newton_method(self, epsn_z): H = self.H