mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-18 17:00:24 +00:00
pyfec: make randomized unit tests more comprehensive
This commit is contained in:
parent
7b9630d59c
commit
367faeef6a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user