remove no longer necessary rand.Seed

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2024-06-11 16:10:52 +03:00
parent 7c46ac8c5d
commit 977afa7510
2 changed files with 9 additions and 2 deletions

View File

@ -60,7 +60,15 @@ var schema = `
"destination": { "type": "string" },
"type": { "type": "string" },
"source": { "type": "string" },
"options": { "$ref": "#/definitions/strings" }
"options": { "$ref": "#/definitions/strings" },
"uidmappings": {
"type": "array",
"items": { "$ref": "#/definitions/idmapping" }
},
"gidmappings": {
"type": "array",
"items": { "$ref": "#/definitions/idmapping" }
}
}
},
"mounts": {

View File

@ -48,7 +48,6 @@ func runAzureCmd() *cobra.Command {
clientID := getEnvVarOrExit("AZURE_CLIENT_ID")
clientSecret := getEnvVarOrExit("AZURE_CLIENT_SECRET")
rand.Seed(time.Now().UTC().UnixNano())
virtualNetworkName := fmt.Sprintf("linuxkitvirtualnetwork%d", rand.Intn(1000))
subnetName := fmt.Sprintf("linuxkitsubnet%d", rand.Intn(1000))
publicIPAddressName := fmt.Sprintf("publicip%d", rand.Intn(1000))