Commit e5abce16 authored by Vincent Pelletier's avatar Vincent Pelletier

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

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1967 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 59da54b7
...@@ -134,13 +134,13 @@ class NeoTestBase(unittest.TestCase): ...@@ -134,13 +134,13 @@ class NeoTestBase(unittest.TestCase):
def getPTID(self, i=None): def getPTID(self, i=None):
""" Return a 8-bytes PTID """ """ Return a 8-bytes PTID """
if i is None: if i is None:
return os.urandom(4) return os.urandom(8)
return pack('!Q', i) return pack('!Q', i)
def getOID(self, i=None): def getOID(self, i=None):
""" Return a 8-bytes OID """ """ Return a 8-bytes OID """
if i is None: if i is None:
return os.urandom(4) return os.urandom(8)
return pack('!Q', i) return pack('!Q', i)
def getTwoIDs(self): def getTwoIDs(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment