lnd_test: remove unused math/rand rependency

This commit is contained in:
Johan T. Halseth 2018-11-20 15:09:44 +01:00
parent d3b44542d3
commit e1d8b07735
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -20,7 +20,6 @@ import (
"crypto/rand"
"crypto/sha256"
prand "math/rand"
"github.com/btcsuite/btcd/chaincfg"
"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.
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
// will pay to in order to advance the state of the channel.
bobPayReqs := make([]string, numInvoices)
@ -8385,9 +8381,6 @@ func testBidirectionalAsyncPayments(net *lntest.NetworkHarness, t *harnessTest)
aliceAmt := info.LocalBalance
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
// will pay to in order to advance the state of the channel.
bobPayReqs := make([]string, numInvoices)