Commit c4ed5e5c authored by 张振华's avatar 张振华

Merge branch 'dpos-v2' of https://github.com/zzh33cn/plugin into dpos-v2

parents 0737c4e1 5b296135
...@@ -25,13 +25,13 @@ var ( ...@@ -25,13 +25,13 @@ var (
randgen *rand.Rand randgen *rand.Rand
// Fmt ... // Fmt ...
Fmt = fmt.Sprintf Fmt = fmt.Sprintf
once sync.Once once sync.Once
) )
// Init ... // Init ...
func Init() { func Init() {
once.Do(func () { once.Do(func() {
if randgen == nil { if randgen == nil {
randgen = rand.New(rand.NewSource(time.Now().UnixNano())) randgen = rand.New(rand.NewSource(time.Now().UnixNano()))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment