Skip to content

allow specifying seed so that generate can be repeatable. #280

Closed
@johanatan

Description

@johanatan

I have a situation where the length of an array that I need to generate will be determined dynamically by the code under test. I was attempting to use the variant method, passing it an arbitrary Int which is an input to my test case to reliably and deterministically set the value passed to .proliferate. Upon closer inspection, I see that variant doesn't actually reset the seed by rather just mixes it with a pre-existing seed which is out of my control. Is there any way to either set the original seed or add a new method, perhaps called say resetSeed, which would allow this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions