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 ( import (
"flag" "flag"
"log" "log"
"math/rand"
"strings" "strings"
"time"
"github.com/hamcha/clessy/tg" "github.com/hamcha/clessy/tg"
) )
@ -85,6 +87,8 @@ func main() {
delete(mods, modname) delete(mods, modname)
} }
rand.Seed(time.Now().Unix())
initmods() initmods()
err := tg.CreateBrokerClient(*brokerAddr, dispatch) err := tg.CreateBrokerClient(*brokerAddr, dispatch)