From: Zooko O'Whielacronx Date: Thu, 1 Feb 2007 02:02:24 +0000 (-0700) Subject: pyfec: make randomized unit tests more comprehensive X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~137 X-Git-Url: https://git.rkrishnan.org/vdrive/components/COPYING.GPL?a=commitdiff_plain;h=367faeef6a0d270fa2b3f5beb23e196d35141b30;p=tahoe-lafs%2Ftahoe-lafs.git pyfec: make randomized unit tests more comprehensive --- diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py index d4f4fba9..8e414f96 100644 --- 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)