MCPcopy Create free account
hub / github.com/crewjam/saml / randomBytes

Function randomBytes

util.go:64–71  ·  view source on GitHub ↗

nolint:unparam // This always receives 20, but we want the option to do more or less if needed.

(n int)

Source from the content-addressed store, hash-verified

62
63//nolint:unparam // This always receives 20, but we want the option to do more or less if needed.
64func randomBytes(n int) []byte {
65 rv := make([]byte, n)
66
67 if _, err := io.ReadFull(RandReader, rv); err != nil {
68 panic(err)
69 }
70 return rv
71}

Callers 12

MakeAssertionMethod · 0.70
MakeResponseMethod · 0.70
signMetadataFunction · 0.70
MakeErrorResponseMethod · 0.70
MakeLogoutResponseMethod · 0.70
MakeAttributeQueryMethod · 0.70

Calls

no outgoing calls

Tested by 1