projects
/
tahoe-lafs
/
zfec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb66c8
)
pyfec: weaken preconditions -- you can have up to 256 shares, and you don't have...
author
zooko
<zooko@zooko.com>
Sat, 27 Jan 2007 02:16:12 +0000
(07:46 +0530)
committer
zooko
<zooko@zooko.com>
Sat, 27 Jan 2007 02:16:12 +0000
(07:46 +0530)
darcs-hash:
406d3fb88b63ef151abe5d312ef729e576cd0f2d
pyfec/fec/test/test_pyfec.py
patch
|
blob
|
history
diff --git
a/pyfec/fec/test/test_pyfec.py
b/pyfec/fec/test/test_pyfec.py
index 26356f6f4fc2ebbfdbd3dfa4bcbcfd89d3c58aec..b01a3e64a59abf9ba073b6635f246ded7eca4bf1 100755
(executable)
--- a/
pyfec/fec/test/test_pyfec.py
+++ b/
pyfec/fec/test/test_pyfec.py
@@
-71,10
+71,10
@@
def pad_size(n, k):
return 0
def _test_random():
- m = random.randrange(1, 25
5
)
+ m = random.randrange(1, 25
7
)
k = random.randrange(1, m+1)
l = random.randrange(0, 2**16)
- ss = [ randstr(l/k)
+ '\x00' * pad_size(l/k, k)
for x in range(k) ]
+ ss = [ randstr(l/k) for x in range(k) ]
_h(k, m, ss)
def test_random():