Skip to content

Commit b52a402

Browse files
David Tolnaymeta-codesync[bot]
authored andcommitted
Update rand_xorshift from 0.4.0 to 0.5.0
Reviewed By: diliop, boujeepossum Differential Revision: D99793089 fbshipit-source-id: 20a8b524901830f820c1bedb13982435eab4aeb8
1 parent d2a669f commit b52a402

File tree

23 files changed

+38
-37
lines changed

23 files changed

+38
-37
lines changed

eden/mononoke/blobstore/BUCK

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust_library(
1212
"fbsource//third-party/rust:anyhow",
1313
"fbsource//third-party/rust:clap",
1414
"fbsource//third-party/rust:futures",
15-
"fbsource//third-party/rust:rand_distr_05",
15+
"fbsource//third-party/rust:rand_distr",
1616
"fbsource//third-party/rust:tokio",
1717
":blobstore",
1818
":blobstore_stats",
@@ -149,7 +149,7 @@ rust_library(
149149
deps = [
150150
"fbsource//third-party/rust:anyhow",
151151
"fbsource//third-party/rust:async-trait",
152-
"fbsource//third-party/rust:rand_09",
152+
"fbsource//third-party/rust:rand",
153153
"fbsource//third-party/rust:thiserror",
154154
":blobstore",
155155
"//eden/mononoke/mononoke_types:mononoke_types",
@@ -220,7 +220,7 @@ rust_library(
220220
autocargo = {"cargo_toml_dir": "packblob"},
221221
test_deps = [
222222
"fbsource//third-party/rust:bytes",
223-
"fbsource//third-party/rust:rand_09",
223+
"fbsource//third-party/rust:rand",
224224
"fbsource//third-party/rust:rand_xorshift",
225225
":memblob",
226226
"//common/rust/shed/borrowed:borrowed",
@@ -294,7 +294,7 @@ rust_library(
294294
"fbsource//third-party/rust:futures",
295295
"fbsource//third-party/rust:nonzero_ext",
296296
"fbsource//third-party/rust:once_cell",
297-
"fbsource//third-party/rust:rand_09",
297+
"fbsource//third-party/rust:rand",
298298
"fbsource//third-party/rust:serde_json",
299299
"fbsource//third-party/rust:tokio",
300300
"fbsource//third-party/rust:tokio-stream",
@@ -325,8 +325,8 @@ rust_library(
325325
deps = [
326326
"fbsource//third-party/rust:anyhow",
327327
"fbsource//third-party/rust:async-trait",
328-
"fbsource//third-party/rust:rand_09",
329-
"fbsource//third-party/rust:rand_distr_05",
328+
"fbsource//third-party/rust:rand",
329+
"fbsource//third-party/rust:rand_distr",
330330
"fbsource//third-party/rust:tokio",
331331
":blobstore",
332332
"//eden/mononoke/mononoke_types:mononoke_types",

eden/mononoke/blobstore/chaosblob/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async-trait = "0.1.86"
1313
blobstore = { version = "0.1.0", path = ".." }
1414
context = { version = "0.1.0", path = "../../servers/slapi/slapi_server/context" }
1515
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
16-
rand = { version = "0.9", features = ["small_rng"] }
16+
rand = "0.10"
1717
thiserror = "2.0.18"
1818

1919
[dev-dependencies]

eden/mononoke/blobstore/delayblob/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ async-trait = "0.1.86"
1313
blobstore = { version = "0.1.0", path = ".." }
1414
context = { version = "0.1.0", path = "../../servers/slapi/slapi_server/context" }
1515
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
16-
rand = { version = "0.9", features = ["small_rng"] }
17-
rand_distr = "0.5"
16+
rand = "0.10"
17+
rand_distr = "0.6"
1818
tokio = { version = "1.50.0", features = ["full", "test-util", "tracing"] }

eden/mononoke/blobstore/delayblob/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use blobstore::OverwriteStatus;
1818
use blobstore::PutBehaviour;
1919
use context::CoreContext;
2020
use mononoke_types::BlobstoreBytes;
21-
use rand::Rng;
21+
use rand::RngExt as _;
2222
use rand_distr::Distribution;
2323

2424
pub type Normal = rand_distr::Normal<f64>;

eden/mononoke/blobstore/factory/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ multiplexedblob = { version = "0.1.0", path = "../multiplexedblob" }
2929
multiplexedblob_wal = { version = "0.1.0", path = "../multiplexedblob_wal" }
3030
packblob = { version = "0.1.0", path = "../packblob" }
3131
prefixblob = { version = "0.1.0", path = "../prefixblob" }
32-
rand_distr = "0.5"
32+
rand_distr = "0.6"
3333
readonlyblob = { version = "0.1.0", path = "../readonlyblob" }
3434
s3blob = { version = "0.1.0", path = "../s3blob" }
3535
samplingblob = { version = "0.1.0", path = "../samplingblob" }

eden/mononoke/blobstore/packblob/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ fbinit = { version = "0.2.0", git = "https://github.com/facebookexperimental/rus
2828
fbinit-tokio = { version = "0.1.2", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" }
2929
memblob = { version = "0.1.0", path = "../memblob" }
3030
mononoke_macros = { version = "0.1.0", path = "../../common/mononoke_macros" }
31-
rand = { version = "0.9", features = ["small_rng"] }
32-
rand_xorshift = "0.4"
31+
rand = "0.10"
32+
rand_xorshift = "0.5"

eden/mononoke/blobstore/packblob/src/pack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ fn split_key_prefix(key: &str) -> (&str, &str) {
381381
mod tests {
382382
use bytes::Bytes;
383383
use mononoke_macros::mononoke;
384-
use rand::Rng;
385-
use rand::RngCore;
384+
use rand::Rng as _;
385+
use rand::RngExt as _;
386386
use rand::SeedableRng;
387387
use rand_xorshift::XorShiftRng;
388388

eden/mononoke/blobstore/packblob/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ mod tests {
243243
use fbinit::FacebookInit;
244244
use memblob::Memblob;
245245
use mononoke_macros::mononoke;
246-
use rand::RngCore;
246+
use rand::Rng as _;
247247
use rand::SeedableRng;
248248
use rand_xorshift::XorShiftRng;
249249

eden/mononoke/blobstore/sqlblob/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mononoke_macros = { version = "0.1.0", path = "../../common/mononoke_macros" }
2121
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
2222
nonzero_ext = "0.2"
2323
once_cell = "1.21.4"
24-
rand = { version = "0.9", features = ["small_rng"] }
24+
rand = "0.10"
2525
serde_json = { version = "1.0.140", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] }
2626
sql = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" }
2727
sql_ext = { version = "0.1.0", path = "../../common/rust/sql_ext" }

eden/mononoke/blobstore/sqlblob/src/delay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::time::Duration;
1212
use std::time::Instant;
1313

1414
use futures::stream::StreamExt;
15-
use rand::Rng;
15+
use rand::RngExt as _;
1616
use stats::prelude::*;
1717
use tokio::sync::watch;
1818

0 commit comments

Comments
 (0)