From cc52c7036f1becef76b63ace989a78936e40a86c Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 20 Oct 2023 14:39:37 +0200 Subject: [PATCH] testerasure: fix limits on rand 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 56344d7f..af9b6b3d 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) # random column + column = rng.rand((encoded.len div encoded.steps) - 1) # random column dropped: seq[Cid] for _ in 0..