> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# uuidV4

```ts theme={null}
function uuidV4(randomBytes): string
```

Returns the version 4 [UUID](https://www.ietf.org/rfc/rfc4122.txt) for the `randomBytes`.

## Parameters

| Parameter     | Type                                               | Description              |
| :------------ | :------------------------------------------------- | :----------------------- |
| `randomBytes` | [`BytesLike`](/sdk/content/type-aliases/BytesLike) | The random bytes to use. |

## Returns

`string`

The UUID.

## Source

[utils/uuid.ts:15](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/uuid.ts#L15)
