From baf61a6b5b4735b853229c36666e6a00179337c9 Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Sat, 27 Jan 2007 07:46:12 +0530
Subject: [PATCH] pyfec: weaken preconditions -- you can have up to 256 shares,
 and you don't have to pad the individual shares except to make them all the
 same length

darcs-hash:406d3fb88b63ef151abe5d312ef729e576cd0f2d
---
 pyfec/fec/test/test_pyfec.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py
index 26356f6..b01a3e6 100755
--- 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, 255)
+    m = random.randrange(1, 257)
     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():
-- 
2.45.2