init random seed to timestamp

This commit is contained in:
Mike Bloy 2022-05-27 19:17:48 -05:00
parent f65cf71927
commit 1207b83731

View File

@ -3,8 +3,10 @@ package cmd
import ( import (
"fmt" "fmt"
"log" "log"
"math/rand"
"os" "os"
"strings" "strings"
"time"
"git.bloy.org/mike/hasshelper/web" "git.bloy.org/mike/hasshelper/web"
"github.com/rs/zerolog" "github.com/rs/zerolog"
@ -95,4 +97,5 @@ func initConfig() {
os.Exit(1) os.Exit(1)
} }
} }
rand.Seed(time.Now().UnixNano())
} }