diff options
Diffstat (limited to 'pkg/cetus/random.go')
-rw-r--r-- | pkg/cetus/random.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/pkg/cetus/random.go b/pkg/cetus/random.go deleted file mode 100644 index d77a24b..0000000 --- a/pkg/cetus/random.go +++ /dev/null @@ -1,16 +0,0 @@ -package cetus - -import ( - "math/rand" -) - -// RandAlNum returns random alpha-numeric string of specific length -func RandAlNum(n int) string { - rand.Seed(time.Now().UnixNano()) - const alphanum = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" - b := make([]byte, n) - for i := range b { - b[i] = letterBytes[rand.Intn(len(letterBytes))] - } - return string(b) -} |