MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / randomString

Function randomString

src/toolchain.go:388–401  ·  view source on GitHub ↗

Sonstiges

(n int)

Source from the content-addressed store, hash-verified

386
387// Sonstiges
388func randomString(n int) string {
389
390 const alphanum = "AB1CD2EF3GH4IJ5KL6MN7OP8QR9ST0UVWXYZ"
391
392 var bytes = make([]byte, n)
393
394 rand.Read(bytes)
395
396 for i, b := range bytes {
397 bytes[i] = alphanum[b%byte(len(alphanum))]
398 }
399
400 return string(bytes)
401}
402
403func parseTemplate(content string, tmpMap map[string]interface{}) (result string) {
404

Callers 3

saveFilesFunction · 0.70
saveWizardFunction · 0.70
createUUIDFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected