Skip to content

Commit

Permalink
FIx string generation and remove non alphanumeric character
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Feb 16, 2022
1 parent d48b6f5 commit f062f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GetStringOrFile(arg string) string {

// RandomString return a string of length n
func RandomString(n int) string {
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_")
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")

s := make([]rune, n)
for i := range s {
Expand Down

0 comments on commit f062f61

Please sign in to comment.