Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added random module #18

Merged
merged 15 commits into from
Aug 27, 2024
Prev Previous commit
Next Next commit
multiple rng types types name
k88hudson-cfa committed Aug 27, 2024
commit fa7acb4ed6745d1234a1ecf233e6c14fdaf75f81
2 changes: 1 addition & 1 deletion src/random.rs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is conceptually like the eosim code, but we also talked about a version where you didn't get the RNG but just told it what distribution to draw from. @jasonasher did you ever prototype that.

Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ mod test {
}

#[test]
fn multiple_references_with_drop() {
fn multiple_rng_types() {
let mut context = Context::new();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test doesn't seem to do what it says.

context.init_random(42);