MCPcopy
hub / github.com/gorilla/websocket / newMaskKey

Function newMaskKey

conn.go:184–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182)
183
184func newMaskKey() [4]byte {
185 n := rand.Uint32()
186 return [4]byte{byte(n), byte(n >> 8), byte(n >> 16), byte(n >> 24)}
187}
188
189func hideTempErr(err error) error {
190 if e, ok := err.(net.Error); ok && e.Temporary() {

Callers 3

WriteControlMethod · 0.85
flushFrameMethod · 0.85
BenchmarkMaskBytesFunction · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkMaskBytesFunction · 0.68