We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2df67b4 commit 05c6f18Copy full SHA for 05c6f18
v2_test.go
@@ -3,6 +3,7 @@ package proxyproto
3
import (
4
"bufio"
5
"bytes"
6
+ iorand "crypto/rand"
7
"encoding/binary"
8
"math/rand"
9
"reflect"
@@ -51,7 +52,7 @@ var (
51
52
fixtureUnixV2 = append(lengthUnixBytes, fixtureUnixAddress...)
53
fixtureTLV = func() []byte {
54
tlv := make([]byte, 2+rand.Intn(1<<12)) // Not enough to overflow, at least size two
- rand.Read(tlv)
55
+ _, _ = iorand.Read(tlv)
56
return tlv
57
}()
58
fixtureIPv4V2TLV = fixtureWithTLV(lengthV4Bytes, fixtureIPv4Address, fixtureTLV)
0 commit comments