init random seed to timestamp
This commit is contained in:
parent
f65cf71927
commit
1207b83731
@ -3,8 +3,10 @@ package cmd
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.bloy.org/mike/hasshelper/web"
|
||||
"github.com/rs/zerolog"
|
||||
@ -95,4 +97,5 @@ func initConfig() {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user