kjk / betterguid

Go package to generate guid (globally unique id) with good properties

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use crypto/rand instead of math/rand

onitake opened this issue · comments

For certain use cases, it may be necessary to generate entropy using a cryptographically secure random number generator.

Would it be possible to make the randomness source customizable, so crypto/rand can be used instead of math/rand?

@onitake I made a pull request for this, feel free to use my version of the code.