Skip to content

Resolve Clippy lints, replace rand::rngs::mock::StepRng #23

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

Merged
merged 3 commits into from
Apr 25, 2025

Conversation

dhardy
Copy link
Member

@dhardy dhardy commented Apr 24, 2025

For compatibility with rust-random/rand#1634.

@dhardy dhardy requested a review from vks April 24, 2025 07:46
@dhardy dhardy changed the title Replace rand::rngs::mock::StepRng with local ConstRng Resolve Clippy lints, replace rand::rngs::mock::StepRng Apr 24, 2025
@@ -257,6 +257,9 @@ fn owen_t(h: f64, a: f64) -> f64 {
}

fn normal_cdf(x: f64, mean: f64, std_dev: f64) -> f64 {
// f64::erfc from feature `float_erf` may be used over special::Primitive::erfc
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that this is a reproducibility hazard.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is, but if I add #![feature(float_erf)] to the module then the test still passes (with a warning that special::Primitive is unused).

@dhardy dhardy merged commit 987a975 into master Apr 25, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants