crand
crand copied to clipboard
Golang cryptographic randomness utility
Crand
A library that proxies crypto/rand with diverse simple functions.
Values returned exclude the maximum.
Example
Generate a secure, random token
fmt.Printf("Token: %v", crand.String(20))
Disclaimer
I have no formal education in cryptography. The randomness is derived from crypto/rand and I've implemented safeguards against modulus bias.