# GenerateBoundary()

> Generate a random 40-byte array for use as a multipart form boundary.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.7/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

```csharp
public static byte[] GenerateBoundary()
```

### Returns

| Type                                                           | Description                                                         |
| -------------------------------------------------------------- | ------------------------------------------------------------------- |
| [byte\[\]](https://learn.microsoft.com/dotnet/api/system.byte) | 40 random bytes, guaranteed to contain only printable ASCII values. |
