diff --git a/lnwallet/test_utils.go b/lnwallet/test_utils.go index 37f13c55..32c6db95 100644 --- a/lnwallet/test_utils.go +++ b/lnwallet/test_utils.go @@ -7,6 +7,7 @@ import ( "encoding/hex" "io" "io/ioutil" + prand "math/rand" "net" "os" @@ -102,7 +103,7 @@ func CreateTestChannels() (*LightningChannel, *LightningChannel, func(), error) prevOut := &wire.OutPoint{ Hash: chainhash.Hash(testHdSeed), - Index: 0, + Index: prand.Uint32(), } fundingTxIn := wire.NewTxIn(prevOut, nil, nil)