filed
Job queue using FUSE
git clone git://mccd.space/filed
| Log | Files | Refs | README | LICENSE |
commit 33f7c4c35b6b1823e7074404378684d907cb057f parent 605a6c515830a2686d84e78ef6b1f4a1430e051a Author: Marc Coquand <marc@coquand.email> Date: Wed, 17 Dec 2025 12:14:52 +0100 Use only common characters for random IDs Diffstat:
| M | newid.go | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newid.go b/newid.go
@@ -16,7 +16,7 @@ var NewIdName = "new-id"
// Helper function to get a unique 4 character ID
func randomJobId(store *store.Store, characters int) []byte {
- const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-="
+ const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
rand.New(rand.NewSource(time.Now().UnixNano()))
result := make([]byte, characters)
for i := range result {