mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
remove deprecated random seed and other minor staticcheck errors (#10851)
This commit is contained in:
parent
52fe09d0b1
commit
5f1f797281
4 changed files with 10 additions and 7 deletions
|
@ -3,11 +3,9 @@ package main
|
|||
import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
portainer "github.com/portainer/portainer/api"
|
||||
"github.com/portainer/portainer/api/apikey"
|
||||
|
@ -631,8 +629,6 @@ func buildServer(flags *portainer.CLIFlags) portainer.Server {
|
|||
}
|
||||
|
||||
func main() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
configureLogger()
|
||||
setLoggingMode("PRETTY")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue