Skip to content

Commit f522253

Browse files
David Tolnaymeta-codesync[bot]
authored andcommitted
Update from rand 0.8 to 0.9
Reviewed By: diliop Differential Revision: D99613510 fbshipit-source-id: 1a1f8a73ff7e2b34795287451122dcc6bdc32879
1 parent 5561fc0 commit f522253

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

below/btrfs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ common = { package = "below-common", version = "0.11.0", path = "../common" }
1515
libc = "0.2.183"
1616
nix = { version = "0.30.1", features = ["dir", "event", "hostname", "inotify", "ioctl", "mman", "mount", "net", "poll", "ptrace", "reboot", "resource", "sched", "signal", "term", "time", "user", "zerocopy"] }
1717
openat = "0.1.21"
18-
rand = { version = "0.8", features = ["small_rng"] }
19-
rand_distr = "0.4.3"
18+
rand = { version = "0.9", features = ["small_rng"] }
19+
rand_distr = "0.5"
2020
serde = { version = "1.0.219", features = ["derive", "rc"] }
2121
slog = { version = "2.8.2", features = ["max_level_trace", "nested-values"] }
2222
thiserror = "2.0.18"

below/btrfs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ impl BtrfsReader {
257257
.map_err(Error::SysError)?;
258258

259259
let mut roots = Roots::new(fd);
260-
let uniform = Uniform::new(0, total_chunk_length);
261-
let mut rng = rand::thread_rng();
260+
let uniform = Uniform::new(0, total_chunk_length).unwrap();
261+
let mut rng = rand::rng();
262262

263263
let mut sample_tree = SampleTree::new();
264264
let mut total_samples = 0;

0 commit comments

Comments
 (0)