mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
move math rand
This commit is contained in:
parent
e73866a232
commit
a2931da92c
|
@ -6,6 +6,7 @@ import (
|
|||
"fmt"
|
||||
"image/png"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
|
@ -27,6 +28,11 @@ import (
|
|||
"github.com/c9s/bbgo/pkg/util"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// randomize pulling
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
var LoadedExchangeStrategies = make(map[string]SingleExchangeStrategy)
|
||||
var LoadedCrossExchangeStrategies = make(map[string]CrossExchangeStrategy)
|
||||
|
||||
|
|
|
@ -55,8 +55,6 @@ const writeTimeout = 10 * time.Second
|
|||
const listenKeyKeepAliveInterval = 10 * time.Minute
|
||||
|
||||
func init() {
|
||||
// randomize pulling
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
debugBinanceDepth, _ = strconv.ParseBool(os.Getenv("DEBUG_BINANCE_DEPTH"))
|
||||
if debugBinanceDepth {
|
||||
|
|
Loading…
Reference in New Issue
Block a user