arrays/arrays.go
func Random(byteCount int) ([]byte, error) {
	data := make([]byte, byteCount)

	if _, err := rand.Read(data); err != nil {
		return nil, err
	}

	return data, nil
}
func Random(byteCount int) ([]byte, error) {
	data := make([]byte, byteCount)

	if _, err := rand.Read(data); err != nil {
		return nil, err
	}

	return data, nil
}
func Random ( byteCount int ) ( [ ] byte , error ) { data := make ( [ ] byte , byteCount ) if _ , err := rand . Read ( data ) ; err != nil { return nil , err } return data , nil }
// Random generates byte array with random data of byteCount length
Random generates byte array with random data of byteCount length