pyfec: make randomized unit tests more comprehensive

This commit is contained in:
Zooko O'Whielacronx 2007-01-31 19:02:24 -07:00
parent 7b9630d59c
commit 367faeef6a

View 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)