up
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
idSize = 4 // 4 bytes for random part
|
||||
idSize = 6 // 4 bytes for random part
|
||||
prefixSize = 2 // 2 bytes for client prefix
|
||||
rawIDLength = prefixSize + idSize // total 6 bytes
|
||||
base62Len = 8 // 6 bytes encoded in base62 ~ 8 chars
|
||||
poolSize = 10000
|
||||
//base62Len = 8 // 6 bytes encoded in base62 ~ 8 chars
|
||||
poolSize = 10000
|
||||
)
|
||||
|
||||
type Generator struct {
|
||||
|
||||
Reference in New Issue
Block a user