OxL Справочник OxL
РусскийEnglish

method sim.seed

The seed of this run (oxl test --seed N).

Example:

oxl✓ проверяется в CI
use std.test { sim }

test sim "seed is the range value" seeds 5..=5 {
  assert sim.seed() == 5
}
pub(api) static fn seed() -> u64

С версии. 1.0.0-beta

Возвращает

u64

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/test/test.oxl:371

См. также