conduit/client/name.go
2025-09-20 18:14:42 -04:00

24 lines
516 B
Go

package client
import (
"fmt"
"math/rand"
)
var colors = []string{
"red", "blue", "green", "yellow", "purple", "orange",
"pink", "brown", "black", "white", "gray", "cyan",
}
var animals = []string{
"cat", "dog", "bird", "fish", "lion", "tiger",
"bear", "wolf", "fox", "deer", "rabbit", "mouse",
}
func generateTunnelName() string {
color := colors[rand.Intn(len(colors))]
animal := animals[rand.Intn(len(animals))]
number := rand.Intn(900) + 100
return fmt.Sprintf("%s-%s-%d", color, animal, number)
}