[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Allow ~0 to actually be 0 sometimes.



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria:/tmp/cvs-serv6238/lib/mixminion

Modified Files:
	ClientDirectory.py 
Log Message:
Allow ~0 to actually be 0 sometimes.

Index: ClientDirectory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientDirectory.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- ClientDirectory.py	9 Aug 2005 15:51:32 -0000	1.50
+++ ClientDirectory.py	5 Dec 2005 17:15:52 -0000	1.51
@@ -1992,7 +1992,7 @@
         else:
             prng = mixminion.Crypto.getCommonPRNG()
             n = int(prng.getNormal(self.approx,1.5)+0.5)
-            if n < 1: n = 1
+            if n < 0: n = 0
         return [ None ] * n
     def getMinLength(self):
         if self.n is not None: