Skip to content

Consider using np.random.default_rng for self-contained randomness #135

Open
@micimize

Description

@micimize

Setting np.random.seed is alright, but IMO it would be better to add a seed + RNG to each generator using np.random.default_rng(seed) so that their RNG is self contained.

This is because a lot of other code mazelib gets integrated with may make use of the "global" rng, making reproducibility more challenging for depending projects.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions