Skip to content

Commit

Permalink
microcloud/cmd/microcloudd: Fix golangci-lint for go 1.22
Browse files Browse the repository at this point in the history
Fixes `SA1019`; rand.Seed was deprecated in go 1.20

Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Apr 2, 2024
1 parent f9535ef commit 98efcb2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions microcloud/cmd/microcloudd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main

import (
"fmt"
"math/rand"
"os"
"time"

Expand Down Expand Up @@ -140,10 +139,6 @@ func (c *cmdDaemon) Run(cmd *cobra.Command, args []string) error {
return s.Services[types.MicroCloud].(*service.CloudService).StartCloud(s, endpoints)
}

func init() {
rand.Seed(time.Now().UnixNano())
}

func main() {
// Only root should run this
if os.Geteuid() != 0 {
Expand Down

0 comments on commit 98efcb2

Please sign in to comment.