Skip to content

Commit c42d392

Browse files
LudeaGuillaumeLagrange
authored andcommitted
chore: update getrandom to 0.4
Signed-off-by: Guillaume Lagrange <guillaume@glagrange.eu>
1 parent 7370bbf commit c42d392

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 19 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/codspeed/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ colored = "3.0.0"
2323
glob = "0.3.2"
2424
libc = "^0.2"
2525
nix = { version = "0.31.1", features = ["time"] }
26-
getrandom = "0.2"
26+
getrandom = "0.4"
2727
serde = { workspace = true }
2828
serde_json = { workspace = true }
2929
statrs = { version = "0.18.0", default-features = false }

crates/codspeed/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn is_perf_enabled() -> bool {
8181
pub fn generate_unique_id() -> String {
8282
// Generate random bytes for UUID v4
8383
let mut bytes = [0u8; 16];
84-
getrandom::getrandom(&mut bytes).expect("Failed to generate random bytes");
84+
getrandom::fill(&mut bytes).expect("Failed to generate random bytes");
8585

8686
// Extract values from bytes
8787
let r1 = u32::from_be_bytes([bytes[0], bytes[1], bytes[2], bytes[3]]);

0 commit comments

Comments
 (0)