mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-08 19:08:40 -05: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) {
|
func TestMain(m *testing.M) {
|
||||||
rand.Seed(time.Now().Unix())
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
os.Exit(m.Run())
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
@ -83,6 +82,7 @@ func runKMSTest(t *testing.T, kms kms.CloudKMS) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addSuffix(s string) string {
|
func addSuffix(s string) string {
|
||||||
|
rand := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||||
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||||
b := make([]rune, 5)
|
b := make([]rune, 5)
|
||||||
for i := range b {
|
for i := range b {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user