mirror of
https://github.com/portainer/portainer.git
synced 2025-07-27 01:09:41 +02:00
fix(rand): seed the RNG EE-4845 (#8252)
This commit is contained in:
parent
afb024d2a4
commit
3625ab6faa
1 changed files with 4 additions and 0 deletions
|
@ -4,10 +4,12 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
libstack "github.com/portainer/docker-compose-wrapper"
|
libstack "github.com/portainer/docker-compose-wrapper"
|
||||||
"github.com/portainer/docker-compose-wrapper/compose"
|
"github.com/portainer/docker-compose-wrapper/compose"
|
||||||
|
@ -785,6 +787,8 @@ func buildServer(flags *portainer.CLIFlags) portainer.Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
|
||||||
configureLogger()
|
configureLogger()
|
||||||
setLoggingMode("PRETTY")
|
setLoggingMode("PRETTY")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue