Initial commit
All checks were successful
/ build-deploy (push) Successful in 2m28s

This commit is contained in:
Florian Beisel 2024-01-10 00:17:15 +01:00
parent 20c64e59ad
commit 55f794e8ef
Signed by: florian
GPG Key ID: 79ECA2E54996FF4D

View File

@ -145,7 +145,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
} }
} }
// generatePassword creates a secure, random password of a given length // generatePassword creates a secure, random password of a given length.
func generatePassword(length int) (string, error) { func generatePassword(length int) (string, error) {
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
var password strings.Builder var password strings.Builder