mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-08-02 04:23:15 +00:00
Respect filename format
This commit is contained in:
parent
4599e055e5
commit
ca0754725b
1 changed files with 1 additions and 1 deletions
2
util.go
2
util.go
|
|
@ -8,7 +8,7 @@ import (
|
|||
// from http://stackoverflow.com/a/31832326
|
||||
var src = rand.NewSource(time.Now().UnixNano())
|
||||
|
||||
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
const letterBytes = "abcdefghijklmnopqrstuvwxyz1234567890"
|
||||
const (
|
||||
letterIdxBits = 6 // 6 bits to represent a letter index
|
||||
letterIdxMask = 1<<letterIdxBits - 1 // All 1-bits, as many as letterIdxBits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue