fix: resolve mnd lint issues with named constants

This commit is contained in:
user
2026-02-20 03:20:26 -08:00
parent c6c5aaf48e
commit f6ca154315
3 changed files with 30 additions and 10 deletions

View File

@@ -41,8 +41,10 @@ func (s *Handlers) requireAuth(w http.ResponseWriter, r *http.Request) (string,
return uid, nick, true
}
const idBytes = 16
func generateID() string {
b := make([]byte, 16)
b := make([]byte, idBytes)
_, _ = rand.Read(b)
return hex.EncodeToString(b)