Ensure random seed is planted (#2)

This commit is contained in:
Dave Gallant
2020-12-31 03:28:25 -05:00
parent a2afbc1e35
commit d748c5c74d

View File

@@ -2,6 +2,7 @@ package cmd
import (
"encoding/base64"
"time"
"fmt"
"io/ioutil"
@@ -52,6 +53,7 @@ var connectCmd = &cobra.Command{
if flagRandom {
// Select a random server
rand.Seed(time.Now().UnixNano())
serverSelected = (*vpnServers)[rand.Intn(len(*vpnServers))]
} else {