From f45b9bc319f7b2a362231a5903604296e3615c4e Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 17 Sep 2024 09:01:13 -0700 Subject: [PATCH] use crypto/rand, not math/rand, in test Signed-off-by: Ronald G. Minnich --- pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go b/pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go index 938a118d..36fedf26 100644 --- a/pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go +++ b/pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go @@ -6,17 +6,16 @@ package fit import ( "bytes" + "crypto/rand" "encoding/binary" - "math/rand" "testing" "github.com/stretchr/testify/require" ) func randBytes(size uint) []byte { - rand.Seed(0) b := make([]byte, int(size)) - rand.Read(b) + _, _ = rand.Read(b) return b }