Skip to content

Commit fda853b

Browse files
committed
rust: bump up "rand" crate version
1 parent 28ad108 commit fda853b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ clap = { version = "4.5", default-features = false, features = ["std", "cargo",
1616
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
1717
log = { version = "0.4", default-features = false, features = ["std"] }
1818
env_logger = { version = "0.11", default-features = false, features = ["humantime"]}
19-
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
19+
rand = { version = "0.9", default-features = false, features = ["std", "thread_rng"] }
2020
path-absolutize = "3.1"
2121
directories = "6.0"
2222
nom = { version = "7.1", default-features = false, features = ["std"] }

rust/bear/src/intercept/tcp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::sync::Arc;
1010

1111
use super::{Collector, Envelope, Event, Reporter, ReporterId};
1212
use chrono::Utc;
13-
use rand::random;
13+
use rand;
1414

1515
/// Implements convenient methods for the `Envelope` type.
1616
impl Envelope {
@@ -58,7 +58,7 @@ impl Envelope {
5858
/// Implements convenient methods for the `ReporterId` type.
5959
impl ReporterId {
6060
pub fn generate() -> Self {
61-
let id = random::<u64>();
61+
let id = rand::random::<u64>();
6262
ReporterId(id)
6363
}
6464
}

0 commit comments

Comments
 (0)