# Seeds & determinism

> Same recipe, same seed, same bytes — on any machine. What that guarantee covers, and the three things that change the output.

Section: Generate · Type: concept · Last updated: 2026-09-14

A recipe carries a seed, and running it again produces byte-identical output on any machine, because the engine is the same WebAssembly wherever it runs.

## The picture

Recipe + seed → Engine (same WASM everywhere) → Same bytes (on any machine)

Only the recipe, the seed or the engine version changes the output.

## What WorkLens checks

- The website build runs the engine on a demo recipe and byte-compares the result across runs before it will publish the homepage preview.
- The MCP packaging check installs the built server into a clean directory and requires the same seed to produce the same SHA-256 twice.

## What WorkLens does not check

- Determinism is per engine version. A newer engine may generate differently for the same recipe; the receipt records engine_version so you know which produced a file.

## Prove it to yourself

```bash
node packages/sdk-node/bin/worklens.js generate examples/homepage-demo.wl.json --seed 7 -o a.csv
node packages/sdk-node/bin/worklens.js generate examples/homepage-demo.wl.json --seed 7 -o b.csv
cmp a.csv b.csv && echo identical
```

Change --seed on one line and cmp will show the difference.

## Common questions

**Is it the same on macOS, Windows and Linux?**

Yes. The engine is one WebAssembly module, so the arithmetic is the same everywhere it runs — browser, Node.js, or the MCP server.

**What if I want different data?**

Change the seed. Every other declaration stays, so the shape, rules and links hold while the values differ.

## Related

- [Receipts](https://theworklens.com/docs/proof/receipts): What a run’s proof report contains, field by field, with a real one — and the line between what it proves and what it does not.
- [Core concepts](https://theworklens.com/docs/getting-started/core-concepts): The nine words the rest of the docs assume: recipe, entity, field, relationship, rule, scenario, pack, seed and receipt.
- [Configuration](https://theworklens.com/docs/cli/configuration): Every option the generate, prove and bundle commands accept, and what each one changes about a run. There is no config file.

_← Previous: [Generate](https://theworklens.com/docs/generate) · Next: [Output formats](https://theworklens.com/docs/generate/output-formats) →_

_Canonical: https://theworklens.com/docs/generate/seeds · This copy: https://theworklens.com/docs/generate/seeds.md_
