From 0001bbdd92a19f98dc36fb26cfcb98e9b6292dfc Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Thu, 26 Oct 2023 13:53:46 +0200 Subject: [PATCH] testerasure: fix column selection previous test was sometimes failing, and often failing if changed to dataSetSize = BlockSize * 20 Signed-off-by: Csaba Kiraly --- tests/codex/testerasure.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/codex/testerasure.nim b/tests/codex/testerasure.nim index af9b6b3d..352cc1ae 100644 --- a/tests/codex/testerasure.nim +++ b/tests/codex/testerasure.nim @@ -61,7 +61,7 @@ suite "Erasure encode/decode": let encoded = await encode(buffers, parity) var - column = rng.rand((encoded.len div encoded.steps) - 1) # random column + column = rng.rand(encoded.steps - 1) # random column dropped: seq[Cid] for _ in 0..