9 lines
166 B
Go
9 lines
166 B
Go
package util
|
|
|
|
import "crypto/rand"
|
|
|
|
// readRandom fills b with cryptographically secure random bytes.
|
|
func readRandom(b []byte) (int, error) {
|
|
return rand.Read(b)
|
|
}
|