summaryrefslogtreecommitdiff
path: root/internal/network/session.go
blob: a4f60aa8d4248eca05a1754b8043ce65013b9eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package network

import (
	"math/rand"
)

var adjectives = []string{
	"adamant", "adept", "adventurous", "arcadian", "auspicious",
	"awesome", "blossoming", "brave", "charming", "chatty",
	"circular", "considerate", "cubic", "curious", "delighted",
}

var nouns = []string{
	"aardvark", "accordion", "apple", "apricot", "bee",
	"brachiosaur", "cactus", "capsicum", "clarinet", "cowbell",
	"crab", "cuckoo", "cymbal", "diplodocus", "donkey",
}

func NewSession() string {
	noun := nouns[rand.Intn(len(nouns))]
	adjective := adjectives[rand.Intn(len(adjectives))]
	return noun + "-" + adjective
}