Skip to content

[Bug]: Non-deterministic data generation in tests #278

@netrome

Description

@netrome

Context

In signer/storage/model.rs we sometimes use the #[dummy(expr = "fake::vec![u8; 32]") annotation to generate block hashes and other byte arrays represented as vectors. However, this yields non-deterministic results even when using a seeded random number generator.

Definition of done

Generating faked model entities with a seeded random number generator should yield deterministic results.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions