Skip to content

Commit

Permalink
Don't create many different randoms in test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr committed Feb 17, 2021
1 parent a15b8f0 commit 169b7ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/helpers/stringhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"math/rand"
"regexp"
"strings"
"time"
"unicode"

"github.com/sethvargo/go-password/password"
Expand Down Expand Up @@ -75,7 +73,6 @@ func RemoveString(slice []string, s string) (result []string) {
}

func randomStringWithCharset(length int, charset string) string {
var seededRand = rand.New(rand.NewSource(time.Now().UnixNano()))
b := make([]byte, length)
for i := range b {
b[i] = charset[seededRand.Intn(len(charset))]
Expand Down

0 comments on commit 169b7ac

Please sign in to comment.