MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / createRandomString

Function createRandomString

sqlchain/xxx_test.go:85–94  ·  view source on GitHub ↗
(offset, length int, s *string)

Source from the content-addressed store, hash-verified

83}
84
85func createRandomString(offset, length int, s *string) {
86 buff := make([]byte, rand.Intn(length)+offset)
87 rand.Read(buff)
88
89 for i, v := range buff {
90 buff[i] = v%(0x7f-0x20) + 0x20
91 }
92
93 *s = string(buff)
94}
95
96func createRandomStrings(offset, length, soffset, slength int) (s []string) {
97 s = make([]string, rand.Intn(length)+offset)

Callers 3

createRandomStringsFunction · 0.85
createRandomQueryRequestFunction · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected