lnd_test: remove unused math/rand rependency
This commit is contained in:
parent
d3b44542d3
commit
e1d8b07735
@ -20,7 +20,6 @@ import (
|
|||||||
|
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
prand "math/rand"
|
|
||||||
|
|
||||||
"github.com/btcsuite/btcd/chaincfg"
|
"github.com/btcsuite/btcd/chaincfg"
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
@ -8202,9 +8201,6 @@ func testAsyncPayments(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
// Send one more payment in order to cause insufficient capacity error.
|
// Send one more payment in order to cause insufficient capacity error.
|
||||||
numInvoices++
|
numInvoices++
|
||||||
|
|
||||||
// Initialize seed random in order to generate invoices.
|
|
||||||
prand.Seed(time.Now().UnixNano())
|
|
||||||
|
|
||||||
// With the channel open, we'll create invoices for Bob that Alice
|
// With the channel open, we'll create invoices for Bob that Alice
|
||||||
// will pay to in order to advance the state of the channel.
|
// will pay to in order to advance the state of the channel.
|
||||||
bobPayReqs := make([]string, numInvoices)
|
bobPayReqs := make([]string, numInvoices)
|
||||||
@ -8385,9 +8381,6 @@ func testBidirectionalAsyncPayments(net *lntest.NetworkHarness, t *harnessTest)
|
|||||||
aliceAmt := info.LocalBalance
|
aliceAmt := info.LocalBalance
|
||||||
bobAmt := info.RemoteBalance
|
bobAmt := info.RemoteBalance
|
||||||
|
|
||||||
// Initialize seed random in order to generate invoices.
|
|
||||||
prand.Seed(time.Now().UnixNano())
|
|
||||||
|
|
||||||
// With the channel open, we'll create invoices for Bob that Alice
|
// With the channel open, we'll create invoices for Bob that Alice
|
||||||
// will pay to in order to advance the state of the channel.
|
// will pay to in order to advance the state of the channel.
|
||||||
bobPayReqs := make([]string, numInvoices)
|
bobPayReqs := make([]string, numInvoices)
|
||||||
|
Loading…
Reference in New Issue
Block a user