Skip to content

Commit

Permalink
no need to seed rand.Float64
Browse files Browse the repository at this point in the history
  • Loading branch information
0x90-n committed Nov 12, 2024
1 parent ac11bd2 commit 2619e18
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/regserver/regprocessor/regprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
mrand "math/rand"
"net"
"sync"
"time"

zmq "github.com/pebbe/zmq4"
"github.com/refraction-networking/conjure/pkg/core"
Expand Down Expand Up @@ -594,7 +593,6 @@ func (p *RegProcessor) processBdReq(c2sPayload *pb.C2SWrapper) (*pb.Registration
var dstPortOverride uint32

// random float64 between 0 and 1
mrand.Seed(time.Now().UnixNano())
randVal := mrand.Float64()

// ignore prior choices and begin experimental overrides for Min and Prefix transports only
Expand Down

0 comments on commit 2619e18

Please sign in to comment.