diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-03-27 16:40:35 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-03-27 16:40:35 +0100 |
commit | c2dd1f5e20a4054cb4194145293af4f3409759dc (patch) | |
tree | 4502611f1c55698d895960247434312f53524b01 /relay/session.go |
Init relay
Diffstat (limited to 'relay/session.go')
-rw-r--r-- | relay/session.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/relay/session.go b/relay/session.go new file mode 100644 index 0000000..943c684 --- /dev/null +++ b/relay/session.go @@ -0,0 +1,23 @@ +package relay + +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 +} |