conduit/tunnel/name.go
Evan Reichard 0722e5f032
All checks were successful
continuous-integration/drone/push Build is passing
chore: tunnel recorder & slight refactor
2025-09-27 17:49:59 -04:00

24 lines
516 B
Go

package tunnel
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)
}