pyfec: add variant of randomized test which happens to match the interface to benchutil

This commit is contained in:
Zooko O'Whielacronx 2007-01-31 22:55:28 -07:00
parent 367faeef6a
commit 18de69456c

View File

@ -91,6 +91,12 @@ def _test_random():
ss = [ randstr(l/k) for x in range(k) ]
_h(k, m, ss)
def _test_random_with_l(l):
m = 83
k = 19
ss = [ randstr(l/k) for x in range(k) ]
_h(k, m, ss)
def test_random(noisy=True):
for i in range(2**5):
# sys.stdout.write(",")