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

Function randomBytes

util.go:24–31  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

22var RandReader = rand.Reader
23
24func randomBytes(n int) []byte {
25 rv := make([]byte, n)
26
27 if _, err := io.ReadFull(RandReader, rv); err != nil {
28 panic(err)
29 }
30 return rv
31}

Callers 6

MakeAssertionMethod · 0.70
MakeResponseMethod · 0.70
MakeLogoutRequestMethod · 0.70
MakeLogoutResponseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected