fixed rng seed to only be called once at initilization
This commit is contained in:
1 parent
56b88c8f51
commit
8fc0d3062b
1 file changed
+5
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user