Audit the random number generation source (rand) GSC-G404
Security
Minor
2 occurrences in this check
Use of weak random number generator (math/rand instead of crypto/rand)
 83}
 84
 85func TestNewWithSeedNumber(t *testing.T) {
 86	number := rand.Int63n(math.MaxInt64) 87	f := NewWithSeedNumber(number)
 88	Expect(t, fmt.Sprintf("%T", f), "faker.Faker")
 89}
Use of weak random number generator (math/rand instead of crypto/rand)
590
591// NewWithSeedNumber returns a new instance of Faker instance with a given seed
592func NewWithSeedNumber(src int64) (f Faker) {
593	generator := rand.New(rand.NewSource(src))594	f = Faker{Generator: generator}
595	return
596}