From: Zooko O'Whielacronx zooko@zooko.com Date: Thu, 1 Feb 2007 01:02:24 +0000 (+0530) Subject: pyfec: make randomized unit tests more comprehensive X-Git-Url: https://git.rkrishnan.org/frontends/listings/using.html?a=commitdiff_plain;h=fbf4cf0c8fa16f1730312b53cc47150aa1ea52b1;p=tahoe-lafs%2Fzfec.git pyfec: make randomized unit tests more comprehensive darcs-hash:3443d15b6a3c1e99cc4d98addb731f56ce4eebe0 --- diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py index d4f4fba..8e414f9 100755 --- a/pyfec/fec/test/test_pyfec.py +++ b/pyfec/fec/test/test_pyfec.py @@ -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)