MCPcopy
hub / github.com/tinyauthapp/tinyauth / GenerateUUID

Function GenerateUUID

internal/utils/security_utils.go:105–108  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

103}
104
105func GenerateUUID(str string) string {
106 uuid := uuid.NewSHA1(uuid.NameSpaceURL, []byte(str))
107 return uuid.String()
108}
109
110func GenerateString(length int) string {
111 src := make([]byte, length)

Callers 3

TestGenerateUUIDFunction · 0.92
AuthorizeMethod · 0.92
SetupMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestGenerateUUIDFunction · 0.74