iedc-go/vendor/github.com/chanxuehong/rand
2023-03-03 03:12:15 +08:00
..
.gitignore 重新索引 2023-03-03 03:12:15 +08:00
crypto_rand.go 重新索引 2023-03-03 03:12:15 +08:00
doc.go 重新索引 2023-03-03 03:12:15 +08:00
go.mod 重新索引 2023-03-03 03:12:15 +08:00
helper.go 重新索引 2023-03-03 03:12:15 +08:00
LICENSE 重新索引 2023-03-03 03:12:15 +08:00
math_rand.go 重新索引 2023-03-03 03:12:15 +08:00
rand.go 重新索引 2023-03-03 03:12:15 +08:00
README.md 重新索引 2023-03-03 03:12:15 +08:00

golang rand package

GoPkg Widget

Package rand provides random number/bytes related functions.

The Rand type is similar to math/rand.Rand, except that it prefers to use crypto/rand to implement functions.

NOTE

Because we use crypto/rand to implement functions, the performance is not as good as math/rand. If you care about performance, please use it carefully.