Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'util/random/random.go')
-rw-r--r--util/random/random.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/util/random/random.go b/util/random/random.go
index 1dd47ec9..67ee0691 100644
--- a/util/random/random.go
+++ b/util/random/random.go
@@ -4,12 +4,14 @@ import (
"math/rand"
)
-var numSeq [10]rune
-var lowerSeq [26]rune
-var upperSeq [26]rune
-var numLowerSeq [36]rune
-var numUpperSeq [36]rune
-var allSeq [62]rune
+var (
+ numSeq [10]rune
+ lowerSeq [26]rune
+ upperSeq [26]rune
+ numLowerSeq [36]rune
+ numUpperSeq [36]rune
+ allSeq [62]rune
+)
func init() {
for i := 0; i < 10; i++ {