mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
kms: replace deprecated rand.Seed
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
937ced0223
commit
6d6d7d4b6e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user