From 257802eb8abd4aa6bc5b8561893e2322f010d5e1 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Wed, 15 Mar 2017 21:19:03 +0100 Subject: [PATCH] Can't believe I never seeded the RNG --- mods/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/main.go b/mods/main.go index f6075f6..0e1c0f9 100644 --- a/mods/main.go +++ b/mods/main.go @@ -3,7 +3,9 @@ package main import ( "flag" "log" + "math/rand" "strings" + "time" "github.com/hamcha/clessy/tg" ) @@ -85,6 +87,8 @@ func main() { delete(mods, modname) } + rand.Seed(time.Now().Unix()) + initmods() err := tg.CreateBrokerClient(*brokerAddr, dispatch)