Skip to content

propagate rand 0.9 xoshiro 0.7 deps #580

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jean-pierreBoth
Copy link

updates deps.
from_entropy replaces by from_os_rng (rand docs recommans chacha for portability...)
The rest should be ok. all tests passed.

@@ -55,4 +55,4 @@ maintenance = { status = "actively-developed" }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
features = ["serde1"]
Copy link
Member

Choose a reason for hiding this comment

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

Why is serde1 removed?

@@ -146,7 +146,7 @@ impl<P, F, R> ParticleSwarm<P, F, R>
where
P: Clone + SyncAlias + ArgminSub<P, P> + ArgminMul<F, P> + ArgminRandom + ArgminZeroLike,
F: ArgminFloat,
R: Rng,
R: Rng + RngCore,
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain why this is necessary, please?

@@ -511,7 +511,7 @@ where
// `1 / (1 + exp((next_cost - prev_cost) / current_temperature))`,
//
// which will always be between 0 and 0.5.
let prob: f64 = self.rng.gen();
let prob: f64 = self.rng.random();
Copy link
Member

Choose a reason for hiding this comment

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

Could you point me to the documentation where this change is described, please?

@stefan-k
Copy link
Member

Thanks for the contribution! I have a few minor questions.

@jean-pierreBoth
Copy link
Author

jean-pierreBoth commented Mar 23, 2025 via email

@jean-pierreBoth
Copy link
Author

jean-pierreBoth commented Mar 23, 2025 via email

@jean-pierreBoth
Copy link
Author

jean-pierreBoth commented Mar 23, 2025 via email

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.12%. Comparing base (b35808a) to head (091f8c8).

Files with missing lines Patch % Lines
crates/argmin-math/src/ndarray_m/random.rs 50.00% 2 Missing ⚠️
crates/argmin/src/solver/simulatedannealing/mod.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #580      +/-   ##
==========================================
- Coverage   92.13%   92.12%   -0.01%     
==========================================
  Files         177      177              
  Lines       23672    23672              
==========================================
- Hits        21810    21808       -2     
- Misses       1862     1864       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jean-pierreBoth
Copy link
Author

Last pb is wasm.
cargo tree provides:
ring ahash etc blocks to getrandom 0.2 , ring does not plan to change dep see briansmith/ring#2341
getrandom 0.3 changed features and command line (see on their site).

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.

3 participants