feat: chars -> charsAPIKey
1 files changed, 2 insertions(+), 2 deletions(-) M internal/util/apikey.go
M internal/util/apikey.go => internal/util/apikey.go +2 -2
@@ 9,14 9,14 @@ package util import "math/rand" const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" const charsAPIKey = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" // GenAPIKey returns a 48 char string. func GenAPIKey() string { // NOTE: "Good enough" b := make([]byte, 48) for i := range b { b[i] = chars[rand.Int63()%int64(len(chars))] b[i] = charsAPIKey[rand.Int63()%int64(len(charsAPIKey))] } return string(b) }