]> AND Private Git Repository - canny.git/blobdiff - stc/exp/raphus/bbs.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif des styles
[canny.git] / stc / exp / raphus / bbs.py
index f2e9fd8e9e99dee4a4a087099a3edbd1c0512ea3..88a5e6d0fc75ec2f1244be51af5615dfc0149fe0 100644 (file)
@@ -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