dustinkirkland / golang-petname

Apache License 2.0
213 stars 38 forks source link

add NonDeterministicMode function #11

Closed romainverduci closed 4 years ago

romainverduci commented 5 years ago

Not sure this brings a lot of value compared to calling directly rand.Seed(time.Now().UnixNano()) before petname.Generate() but at least it's clear in the lib how to do it with that new function.

I'm open to any idea how to make it better, if you feel it's not useful feel free to discard the PR :)

dustinkirkland commented 4 years ago

Sure, I'll merge this. Thanks.