Skip to content

Commit

Permalink
merge with unique name change
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-hashicorp committed Feb 14, 2024
1 parent ad003a0 commit 7374665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/providersdkv2/unique_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// uniqueName will generate a unique name that is <= 36 characters long.
// E.g. hcp-provider-test-20060102150405-123
// E.g. hcp-provider-20060102150405-1234567
func uniqueName() string {
return "hcp-provider-test-" + time.Now().Format("20060102150405") + "-" + strconv.Itoa(rand.Intn(1000))
return "hcp-provider-" + time.Now().Format("20060102150405") + "-" + strconv.Itoa(rand.Intn(10000000))
}

0 comments on commit 7374665

Please sign in to comment.