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 (
|
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)
|
||||||
|
|
Reference in a new issue