---
url: /api/kiln/functions/stateHash.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / stateHash

# Function: stateHash()

```ts
function stateHash(app, precision?): string;
```

Hash of the simulation state: every entity's JSON trait values plus the Rng, rounded.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `app` | [`App`](../classes/App.md) | `undefined` |
| `precision` | `number` | `5` |

## Returns

`string`
