From d9369ae1a8dc215f3dc5aa65f08cfb7ca9b435a6 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 1 Jul 2025 20:25:38 +0800 Subject: [PATCH] htlcswitch: remove unnecessary `prand.Seed` --- htlcswitch/link.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index adaeafaf4..206b8db60 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -36,10 +36,6 @@ import ( "github.com/lightningnetwork/lnd/tlv" ) -func init() { - prand.Seed(time.Now().UnixNano()) -} - const ( // DefaultMaxOutgoingCltvExpiry is the maximum outgoing time lock that // the node accepts for forwarded payments. The value is relative to the