icrowley / fake

Fake data generator for Go (Golang)
MIT License
591 stars 77 forks source link

Random without seed #26

Closed screwyprof closed 5 years ago

screwyprof commented 5 years ago

It's worth mentioning in the docs that the library users must init random with some seed, otherwise the fake data won't be really random.

To put it simply, one should add some init code, e.g.:

    rand.Seed(time.Now().UnixNano())