Skip to content

Commit

Permalink
Fix vet
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Sep 30, 2023
1 parent 586cb31 commit 75a8c30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"fmt"
"io"
"math/rand"
"net"
"net/url"
"os"
Expand Down Expand Up @@ -168,8 +167,6 @@ type Host struct {
}

func (c *Host) Run(ctx context.Context) error {
rand.Seed(time.Now().UTC().UnixNano())

u, err := url.Parse(c.Host)
if err != nil {
return fmt.Errorf("error parsing host url: %s", err)
Expand Down
3 changes: 0 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/base64"
"fmt"
"math/rand"
"net"
"net/url"
"os"
Expand Down Expand Up @@ -39,8 +38,6 @@ type Opt struct {
}

func Start(opt Opt) error {
rand.Seed(time.Now().UTC().UnixNano())

// must always have a ssh addr
if opt.SSHAddr == "" {
return fmt.Errorf("must specify a ssh address")
Expand Down

0 comments on commit 75a8c30

Please sign in to comment.