kms: replace deprecated rand.Seed

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-02-15 10:33:54 +01:00
parent 937ced0223
commit 6d6d7d4b6e

View File

@ -52,7 +52,6 @@ var (
)
func TestMain(m *testing.M) {
rand.Seed(time.Now().Unix())
flag.Parse()
os.Exit(m.Run())
}
@ -83,6 +82,7 @@ func runKMSTest(t *testing.T, kms kms.CloudKMS) {
}
func addSuffix(s string) string {
rand := rand.New(rand.NewSource(time.Now().UnixNano()))
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
b := make([]rune, 5)
for i := range b {