# FNV1A64

> Generates a FNV1A64 hash.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## FNV1A64(string)

Generates a FNV1A64 hash.

```csharp
public static ulong FNV1A64(string text)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to hash.

### Returns

| Type                                                          | Description           |
| ------------------------------------------------------------- | --------------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | Hash of input string. |

## FNV1A64\<T>(T)

Generates a FNV1A64 hash.

```csharp
public static ulong FNV1A64<T>(T text) where T : unmanaged, INativeList<byte>, IUTF8Bytes
```

### Parameters

**** (T): Text to hash.

### Returns

| Type                                                          | Description           |
| ------------------------------------------------------------- | --------------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | Hash of input string. |

## FNV1A64(int)

Generates a FNV1A64 hash.

```csharp
public static ulong FNV1A64(int val)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Value to hash.

### Returns

| Type                                                          | Description    |
| ------------------------------------------------------------- | -------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | Hash of input. |
