[Neo-report] r1967 vincent - /trunk/neo/tests/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 11:19:17 CET 2010


Author: vincent
Date: Fri Mar 26 11:19:07 2010
New Revision: 1967

Log:
Actually return 8 bytes of data when asking for random number generation.

Modified:
    trunk/neo/tests/__init__.py

Modified: trunk/neo/tests/__init__.py
==============================================================================
--- trunk/neo/tests/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/__init__.py [iso-8859-1] Fri Mar 26 11:19:07 2010
@@ -134,13 +134,13 @@
     def getPTID(self, i=None):
         """ Return a 8-bytes PTID """
         if i is None:
-            return os.urandom(4)
+            return os.urandom(8)
         return pack('!Q', i)
 
     def getOID(self, i=None):
         """ Return a 8-bytes OID """
         if i is None:
-            return os.urandom(4)
+            return os.urandom(8)
         return pack('!Q', i)
 
     def getTwoIDs(self):





More information about the Neo-report mailing list