Files
xgcl/grand/doc.go
T
2026-05-27 23:03:00 +08:00

19 lines
384 B
Go

/*
Package grand is the random number generators.
Use the following io.Reader to generate random numbers:
- grand.Reader, the go's crypto/rand (/dev/urandom in *nix)
- grand.SM3Rng, the DRNG of SM3_RNG
- grand.SM4Rng, the DRNG of SM4_RNG
example:
buf := make([]byte,32)
if _, err := grand.SM3Rng.Read(buf);err != nil{
//
}
随机数检测相关的xdx.jelly/
*/
package grand