]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
pyfec: make randomized unit tests more comprehensive
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 02:02:24 +0000 (19:02 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 02:02:24 +0000 (19:02 -0700)
pyfec/fec/test/test_pyfec.py

index d4f4fba9997904d478a07c9a728a5d742a7c21df..8e414f96526f852d99f65ea8a9b4bc055e2ae8fa 100644 (file)
@@ -87,7 +87,7 @@ def pad_size(n, k):
 def _test_random():
     m = random.randrange(1, 257)
     k = random.randrange(1, m+1)
-    l = random.randrange(0, 2**16)
+    l = random.randrange(0, 2**15)
     ss = [ randstr(l/k) for x in range(k) ]
     _h(k, m, ss)