Can't believe I never seeded the RNG

This commit is contained in:
Hamcha 2017-03-15 21:19:03 +01:00
parent f9d5fb46f1
commit 257802eb8a

View file

@ -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)