From 9401775b7a6e614c2a6f0d5ec2c3a9f0255e19f7 Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Tue, 15 Mar 2022 12:35:42 -0400 Subject: [PATCH] Update types/tx_test.go Co-authored-by: M. J. Fromberger --- types/tx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/tx_test.go b/types/tx_test.go index 00ef29e14..dcd13f3f6 100644 --- a/types/tx_test.go +++ b/types/tx_test.go @@ -302,6 +302,6 @@ func assertBadProof(t *testing.T, root []byte, bad []byte, good TxProof) { } func randInt(low, high int) int { - off := rand.Int() % (high - low) + return rand.Intn(high-low) + low return low + off }