From c2dd1f5e20a4054cb4194145293af4f3409759dc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 27 Mar 2025 16:40:35 +0100 Subject: Init relay --- relay/session.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 relay/session.go (limited to 'relay/session.go') 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 +} -- cgit v1.2.3-18-g5258