aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2021-01-14 17:05:29 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2021-01-14 17:05:29 +0000
commitef214dce2cce07924fac3466f5c7a341f7d72765 (patch)
tree572cffe74f5894f9cf1bd5168ee462cfc4afe9a9
parentrobustify test (diff)
downloadSyncRNG-ef214dce2cce07924fac3466f5c7a341f7d72765.tar.gz
SyncRNG-ef214dce2cce07924fac3466f5c7a341f7d72765.zip
cast to int explicitly
-rw-r--r--SyncRNG/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/SyncRNG/__init__.py b/SyncRNG/__init__.py
index 65b73a2..6d67746 100644
--- a/SyncRNG/__init__.py
+++ b/SyncRNG/__init__.py
@@ -20,7 +20,7 @@ class SyncRNG(object):
def randi(self):
tmp = _rand(self.state)
self.state = tmp[:-1]
- return(tmp[-1])
+ return int(tmp[-1])
def rand(self):
return self.randi() * 2.3283064365387e-10