Skip to content

Commit

Permalink
use crypto/rand, not math/rand, in test
Browse files Browse the repository at this point in the history
Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Sep 17, 2024
1 parent df8b600 commit f45b9bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f45b9bc

Please sign in to comment.