From 223cec442bc41588f9e953198a99e53b6e9682a5 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 14 Jul 2025 08:38:43 +0200 Subject: [PATCH] itest: use random hash gen helper --- itest/lnd_misc_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/itest/lnd_misc_test.go b/itest/lnd_misc_test.go index 66b7fadf4..d3ef987ba 100644 --- a/itest/lnd_misc_test.go +++ b/itest/lnd_misc_test.go @@ -1,7 +1,6 @@ package itest import ( - "crypto/rand" "encoding/hex" "fmt" "os" @@ -1355,14 +1354,11 @@ func testGRPCNotFound(ht *lntest.HarnessTest) { notFoundErr = codes.NotFound.String() unknownPub = "0286098b97bc843372b4426d4b276cea9aa2f48f0428d6" + "f5b66ae101befc14f8b4" - rHash = make([]byte, 32) + rHash = ht.Random32Bytes() ) unknownPubBytes, err := route.NewVertexFromStr(unknownPub) require.NoError(ht, err) - _, err = rand.Read(rHash) - require.NoError(ht, err) - alice := ht.NewNode("Alice", []string{ // We add this flag so that we can test the // LookupHTLCResolutionAssertErr endpoint.