Более рандомный рандом
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"io/fs"
|
||||
"math"
|
||||
"math/rand"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strconv"
|
||||
@@ -552,6 +553,10 @@ func init() {
|
||||
TimestampFormat: "2006-01-02 15:04:05",
|
||||
})
|
||||
|
||||
// Запустим наш рандомайзер
|
||||
rngSeed := rand.NewSource(time.Now().UnixNano())
|
||||
random = rand.New(rngSeed)
|
||||
|
||||
config = ReadConfig()
|
||||
|
||||
// no panic, no trace
|
||||
|
||||
Reference in New Issue
Block a user