github.com/go-eden/common@v0.1.15-0.20210617133546-059099253264/erand/rand_data.go (about) 1 package erand 2 3 // Bytes return [n]byte which contains random data. 4 func Bytes(n int) []byte { 5 data := make([]byte, n, n) 6 gr.Read(data) 7 return data 8 }