casey / casey/intermodal

Add RNG to `Env`

Open
#470 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
659
Forks
36
Avg merge
18m
Merged PRs (30d)
2

Description

Add a `rng` object to `Env`, initialized deterministically (probably with `0`) for testing, and with a secret from the OS otherwise.

This can be used to make RNG calls deterministic during testing, which seems valuable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.