Skip to content
Skip to Content

seed

Key of the [scenario] table. Qualified name: scenario.seed

Root of the seed tree, an integer from 0 to 2^63 - 1; the same seed gives the same run.

Type
integer
Unit
none
Default
requiredexample: 20180101
Valid range
0 to 2^63 - 1whole numbers
Set in
[scenario]required table
Since
0.1engine 0.1.0

Description

seed is required: a [scenario] table without it stops with E1006. The value is an integer from 0 to 2^63 - 1; outside that range the engine stops with E1013.

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101  # this page

[time]
start = 2018-01-01
end = 2019-01-01

[plugins."test/ticker"]

Run it with the engine built from source: cohortix run scenario.toml --output output/example.

When the key is misspelled

Written sede, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:

cohortix run scenario.toml
error[E1006]: [scenario] has no `seed`, which is required and must be an integer.
  --> scenario.toml:3:2
  = fix: Add `seed` under [scenario], as an integer, for example `seed = 20180101`.
 
error[E1022]: Unknown key `sede` in [scenario]; did you mean `seed`?
  --> scenario.toml:5:1
  = fix: Rename `sede` to `seed`, or remove it; the accepted keys of [scenario] are "name", "seed".

Errors that name this key

  • E1006: [scenario] has no seed, which is required and must be ….
  • E1008: seed must be …, but it is ….
  • E1013: seed is …, outside the allowed range … to ….
  • E1022: Unknown key … in [scenario]; did you mean …?

See also

  • [scenario]Identity of the scenario: its name and the root of its random seeds.
  • nameName of the scenario (ASCII letters, digits, `-` and `_`)

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key scenario.seed) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.scenario.seed in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.