Home / Docs / Standard library / std.testing

fake_hash

Release v0.4.0Edition 0.1 and later

A function of the module std.testing, which test code imports (spec/14 §4). 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

Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.