Skip to content

Commit ed38bbf

Browse files
hyperpolymathclaude
andcommitted
fix(deps): adapt to rand 0.10 split Rng/RngExt trait
rand 0.10 moved `random()` and `random_range()` off `Rng` onto a new `RngExt` extension trait. Two call sites (agent/swarm.rs, learning/design_search.rs) needed the import updated; no behavioural change. cargo build green; cargo test --lib: 1174 passed / 0 failed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com>
1 parent 03d11fe commit ed38bbf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/rust/agent/swarm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
use std::sync::Arc;
3030

3131
use rand::rngs::StdRng;
32-
use rand::{Rng, SeedableRng};
32+
use rand::{RngExt, SeedableRng};
3333
use serde::{Deserialize, Serialize};
3434
use tokio::sync::{mpsc, Mutex};
3535
use tokio::task::JoinSet;

src/rust/learning/design_search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::collections::BTreeSet;
3131
use std::fmt::Debug;
3232

3333
use rand::rngs::StdRng;
34-
use rand::{Rng, SeedableRng};
34+
use rand::{RngExt, SeedableRng};
3535
use serde::{Deserialize, Serialize};
3636

3737
/// The minimum surface a domain has to expose for the annealer.

0 commit comments

Comments
 (0)