mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Simplify base62.Random (#5982)
Also move existing base62 encode/decode operations to their only points of use.
This commit is contained in:
@@ -255,7 +255,7 @@ func generateData() map[string][]byte {
|
||||
for i := 0; i < 500; i++ {
|
||||
segments := make([]string, rand.Intn(8)+1)
|
||||
for j := 0; j < len(segments); j++ {
|
||||
s, _ := base62.Random(6, false)
|
||||
s, _ := base62.Random(6)
|
||||
segments[j] = s
|
||||
}
|
||||
data := make([]byte, 100)
|
||||
|
||||
Reference in New Issue
Block a user