Skip to content

Commit

Permalink
Remove symbols from file name chars because it makes links look like …
Browse files Browse the repository at this point in the history
…shit
  • Loading branch information
hgw8 committed Dec 13, 2023
1 parent 345236b commit d84826a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func Zeros(path string, size int64) error {
}

func NameGen(fileNameLength int) string {
const chars = "abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789-_"
const chars = "abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789"
ll := len(chars)
b := make([]byte, fileNameLength)
rand.Read(b) // generates len(b) random bytes
Expand Down

0 comments on commit d84826a

Please sign in to comment.