From d84826ae66c8b23b032c90e146a2827217811a6d Mon Sep 17 00:00:00 2001 From: hgw Date: Wed, 13 Dec 2023 13:47:04 +0000 Subject: [PATCH] Remove symbols from file name chars because it makes links look like shit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f4cd604..4fd4977 100644 --- a/main.go +++ b/main.go @@ -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