fixed rng seed to only be called once at initilization
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
"math/rand"
|
||||||
|
|
||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
)
|
)
|
||||||
@@ -16,6 +18,9 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
// set the randomized seed
|
||||||
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
|
||||||
// build the authentication struct
|
// build the authentication struct
|
||||||
build_auth()
|
build_auth()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user