---
title: "fake_hash"
url: https://una-lang.org/en/docs/std/testing/fake_hash/
release: v0.4.0
edition: "0.1 and later"
source: https://github.com/una-lang/una/blob/v0.4.0/docs/std/listing.json
---

# fake_hash

A function of the module `std.testing`, which test code imports ([`spec/14 §4`](https://una-lang.org/en/docs/spec/14-standard-library/#s4)). Edition 0.1 and later.

```una
pub fake_hash(seed: Int) -> internal Hashed
```

A deterministic `Hashed` value for tests: equal seeds give equal values. Usable only in examples and in handlers that only examples install (`spec/14 §4`).

## Specification

- [`spec/14 §4`](https://una-lang.org/en/docs/spec/14-standard-library/#s4)

Generated from the standard modules of una v0.4.0 ([`docs/std/listing.json`](https://github.com/una-lang/una/blob/5fec93d88932b333feec25e589355a2cb34c37b5/docs/std/listing.json), which is not part of the specification). The specification governs: [`spec/14 §1`](https://una-lang.org/en/docs/spec/14-standard-library/#s1).
