# Hash128

> Construct a hash from a 128-bit input value.

## Definition

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

## Hash128(uint4)

Construct a hash from a 128-bit input value.

```csharp
public Hash128(uint4 value)
```

### Parameters

**** (\[uint4]\(/engine/7000.0/script-reference/unity/mathematics/uint4)): Value to hash.

## Hash128(uint, uint, uint, uint)

Construct a hash from four 32-bit input values.

```csharp
public Hash128(uint x, uint y, uint z, uint w)
```

### Parameters

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

## Hash128(string)

Construct a hash from a 32 character hex string

```csharp
public Hash128(string value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): 32 character hex string.

### Remarks

If the given string has the incorrect length or contains non-hex characters the Value will be all 0

## Hash128(string, bool)

Construct a hash from a 32 character hex string If the string has the incorrect length or non-hex characters the Value will be all 0

```csharp
public Hash128(string value, bool guidFormatted)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): 32 character hex string.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True, if the string value is formatted as a UnityEngine.GUID
