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
1 changed files with 4 additions and 0 deletions

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)