Seed rand with current time
@@ -3,6 +3,7 @@ package server
import (
"fmt"
"io/ioutil"
+ "math/rand"
"net"
"os"
"path/filepath"
@@ -96,6 +97,8 @@ func (s *Server) Start() (err error) {
}
}()
+ rand.Seed(time.Now().UnixNano())
+
// Remove server's ID from the cluster peers list if present.
if len(s.config.Clustering.RaftBootstrapPeers) > 0 {
peers := make([]string, 0, len(s.config.Clustering.RaftBootstrapPeers))
