MCPcopy Index your code
hub / github.com/git-bug/git-bug / randomHash

Function randomHash

repository/repo_testing.go:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func randomHash() Hash {
85 var letterRunes = "abcdef0123456789"
86 b := make([]byte, idLengthSHA256)
87 for i := range b {
88 b[i] = letterRunes[rand.Intn(len(letterRunes))]
89 }
90 return Hash(b)
91}
92
93// helper to test a RepoData
94func RepoDataTest(t *testing.T, repo RepoData) {

Callers 1

RepoDataTestFunction · 0.85

Calls 1

HashTypeAlias · 0.85

Tested by

no test coverage detected