diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-08 12:13:50 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-08 12:13:50 +0200 |
commit | c5b10e28b358308d8349b940af09f64368172f2e (patch) | |
tree | 47a79c82c04ea7604c03ff128c3b096876f5c9eb /network/session.go | |
parent | f75ec8f8f5b3d0d75f752b26df1088e9d42d2634 (diff) |
Remove relay package
Diffstat (limited to 'network/session.go')
-rw-r--r-- | network/session.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/network/session.go b/network/session.go new file mode 100644 index 0000000..a4f60aa --- /dev/null +++ b/network/session.go @@ -0,0 +1,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 +} |