MCPcopy Create free account
hub / github.com/git-bug/git-bug / makeSalt

Function makeSalt

bridge/core/auth/credential_base.go:29–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func makeSalt() []byte {
30 result := make([]byte, 16)
31 _, err := rand.Read(result)
32 if err != nil {
33 panic(err)
34 }
35 return result
36}
37
38func newCredentialBaseFromData(data map[string]string) (*credentialBase, error) {
39 base := &credentialBase{

Callers 1

newCredentialBaseFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected