summaryrefslogtreecommitdiff
path: root/pkg/p2p/session.go
blob: 5d7ab5229b45259335bd9e4008462719c31ff435 (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 p2p

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
}