From 25263f71dcafb32dd97b24c95707e1081fa389f4 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Fri, 2 Feb 2024 05:06:01 -0800 Subject: [PATCH] Add nolint for rand deprecation warning --- libbeat/cmd/instance/beat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/cmd/instance/beat.go b/libbeat/cmd/instance/beat.go index 88777d06a737..7a70b1a55baa 100644 --- a/libbeat/cmd/instance/beat.go +++ b/libbeat/cmd/instance/beat.go @@ -197,7 +197,7 @@ func initRand() { } else { seed = n.Int64() } - rand.Seed(seed) + rand.Seed(seed) //nolint:staticcheck // need seed from cryptographically strong PRNG. } // Run initializes and runs a Beater implementation. name is the name of the