Can't believe I never seeded the RNG
This commit is contained in:
parent
f9d5fb46f1
commit
257802eb8a
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue