Skip to content

Commit 6d45e7b

Browse files
committed
ipn/exit: resolve conflicting rand import
1 parent 01e1d0b commit 6d45e7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

intra/ipn/exit.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package ipn
88

99
import (
1010
"context"
11+
crand "crypto/rand"
1112
"encoding/hex"
1213
"math/rand/v2"
1314
"net"
@@ -203,7 +204,7 @@ func idstr(p x.Proxy) string {
203204
// create a random hex character string of length 8
204205
func hex8() string {
205206
b := make([]byte, 4)
206-
if _, err := rand.Read(b); err != nil {
207+
if _, err := crand.Read(b); err != nil {
207208
return "deadbeef"
208209
}
209210
return hex.EncodeToString(b)

0 commit comments

Comments
 (0)