MCPcopy Create free account
hub / github.com/Mister-leo/fssh / RandBytes

Function RandBytes

internal/crypt/crypt.go:59–63  ·  view source on GitHub ↗
(r io.Reader, n int)

Source from the content-addressed store, hash-verified

57}
58
59func RandBytes(r io.Reader, n int) ([]byte, error) {
60 b := make([]byte, n)
61 _, err := io.ReadFull(r, b)
62 return b, err
63}

Callers 1

SaveEncryptedRecordFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected