hardfiles- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
commit d84826ae66c8b23b032c90e146a2827217811a6d
parent 345236b2d98a234aaa6beaccadf74cafc0a3d33e Author: hgw <hgw7@yahoo.com> Date: Wed, 13 Dec 2023 13:47:04 +0000 Remove symbols from file name chars because it makes links look like shit Diffstat:
|
1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git 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 |