]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
pyfec: make randomized unit tests more comprehensive
authorZooko O'Whielacronx zooko@zooko.com <zooko@zooko.com>
Thu, 1 Feb 2007 01:02:24 +0000 (06:32 +0530)
committerZooko O'Whielacronx zooko@zooko.com <zooko@zooko.com>
Thu, 1 Feb 2007 01:02:24 +0000 (06:32 +0530)
darcs-hash:3443d15b6a3c1e99cc4d98addb731f56ce4eebe0

pyfec/fec/test/test_pyfec.py

index d4f4fba9997904d478a07c9a728a5d742a7c21df..8e414f96526f852d99f65ea8a9b4bc055e2ae8fa 100755 (executable)
@@ -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)