base package

This commit is contained in:
impact-eintr
2022-11-21 14:55:24 +08:00
parent c16f1d0e8c
commit af8c2fbd42
11 changed files with 1296 additions and 1 deletions

11
rand/rand.go Normal file
View File

@@ -0,0 +1,11 @@
package rand
import "crypto/rand"
// Reader is the default reader.
var Reader = rand.Reader
// Read implements io.Reader.Read.
func Read(b []byte) (int, error) {
return rand.Read(b)
}