func generateNRandomBytes(n int) ([]byte, error) {

	b := make([]byte, n)
	_, err := rand.Read(b)
	// Note that err == nil only if we read len(b) bytes.
	if err != nil {
		return nil, err
	}

	return b, nil
}
//GenerateNRandomBytes generates N random bytes and writes them into a byte slice
GenerateNRandomBytes generates N random bytes and writes them into a byte slice
// GenerateNRandomBytes generates N random bytes and writes them into a byte slice
func generateNRandomBytes(n int) ([]byte, error) {
	b := make([]byte, n)
	_, err := rand.Read(b)
	if err != nil {
		return nil, err
	}
	return b, nil
}
func generateNRandomBytes ( n int ) ( [ ] byte , error ) { b := make ( [ ] byte , n ) _ , err := rand . Read ( b ) if err != nil { return nil , err } return b , nil }
GenerateNRandomBytes generates N random bytes and writes them into a byte slice
GenerateNRandomBytes generates N random bytes and writes them into a byte slice
// Note that err == nil only if we read len(b) bytes.