Skip to content

Commit

Permalink
fix: No lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Mar 30, 2023
1 parent 947c2a2 commit b4972ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/edition/java/netmc/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package netmc

import (
"context"
"crypto/rand"
"encoding/binary"
"errors"
"fmt"
"math/rand"
"net"
"sync"
"time"
Expand Down
7 changes: 0 additions & 7 deletions pkg/util/connectutil/config/config.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package config

import (
"math/rand"
"time"
)

const DefaultWatchServiceAddr = "wss://watch-connect.minekube.net"

// DefaultConfig is a default Config.
Expand Down Expand Up @@ -44,5 +39,3 @@ type Service struct {
// Overrides servers with the same name.
OverrideRegistration bool
}

func init() { rand.Seed(time.Now().UnixNano()) }
4 changes: 3 additions & 1 deletion pkg/util/connectutil/config/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import (
"go.minekube.com/gate/pkg/version"
)

func init() { rand.Seed(time.Now().UnixNano()) }
func init() {
rand.Seed(time.Now().UnixNano()) //nolint:staticcheck
}

func randomEndpointName(ctx context.Context) string {
ctx, cancel := context.WithTimeout(ctx, time.Second*5)
Expand Down

0 comments on commit b4972ad

Please sign in to comment.