MCPcopy Index your code
hub / github.com/gotify/server / generateRandomToken

Function generateRandomToken

auth/token.go:57–59  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

55}
56
57func generateRandomToken(prefix string) string {
58 return prefix + generateRandomString(randomTokenLength)
59}
60
61func generateRandomString(length int) string {
62 res := make([]byte, length)

Callers 3

GenerateApplicationTokenFunction · 0.85
GenerateClientTokenFunction · 0.85
GeneratePluginTokenFunction · 0.85

Calls 1

generateRandomStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…