X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/canny.git/blobdiff_plain/10e7b98790a2c43964f49cea7e31557fb58015e6..165a29713fcc3fb0e7bdbf25129fc1e33d14667c:/stc/exp/raphus/bbs.py?ds=sidebyside diff --git a/stc/exp/raphus/bbs.py b/stc/exp/raphus/bbs.py index f2e9fd8..88a5e6d 100644 --- a/stc/exp/raphus/bbs.py +++ b/stc/exp/raphus/bbs.py @@ -116,9 +116,9 @@ class BlumBlumShub(object): x = x>>1 return q - def next(self, numBits): + def next(self, numBits=160): self.state = (self.state**2) % self.n - return float(self.state)/self.n + return self.state def random(self): self.state = (self.state**2) % self.n