fixed rng seed to only be called once at initilization

This commit is contained in:
2020-06-10 00:30:53 -05:00
parent 56b88c8f51
commit 8fc0d3062b

View File

@@ -6,6 +6,8 @@ import (
"os/signal"
"syscall"
"strings"
"time"
"math/rand"
"github.com/bwmarrin/discordgo"
)
@@ -16,6 +18,9 @@ var (
)
func init() {
// set the randomized seed
rand.Seed(time.Now().UnixNano())
// build the authentication struct
build_auth()