diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 22:28:08 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 22:28:08 +0200 |
commit | 544977d54effa7804386aa40f30a87f5e2365efa (patch) | |
tree | aa6896cfa3db9c2e61b219f6995e25da64255f30 /internal/network/session.go | |
parent | 8255fbdd7d9d595e71545b7c6909114024527a34 (diff) |
Move internal/network package to pkg/p2p
Diffstat (limited to 'internal/network/session.go')
-rw-r--r-- | internal/network/session.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/network/session.go b/internal/network/session.go deleted file mode 100644 index a4f60aa..0000000 --- a/internal/network/session.go +++ /dev/null @@ -1,23 +0,0 @@ -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 -} |