From bf185f7402dc7d0445f64d5d9af260f328af6eb9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Apr 2026 05:31:47 +0000 Subject: [PATCH] Update Rust crate rand to v0.9.3 [SECURITY] (#53855) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rand](https://rust-random.github.io/book) ([source](https://redirect.github.com/rust-random/rand)) | workspace.dependencies | patch | `0.9.2` → `0.9.3` | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/15138) for more information. ### GitHub Vulnerability Alerts #### [GHSA-cq8v-f236-94qc](https://redirect.github.com/rust-random/rand/pull/1763) It has been reported (by @​lopopolo) that the `rand` library is [unsound](https://rust-lang.github.io/unsafe-code-guidelines/glossary.html#soundness-of-code--of-a-library) (i.e. that safe code using the public API can cause Undefined Behaviour) when all the following conditions are met: - The `log` and `thread_rng` features are enabled - A [custom logger](https://docs.rs/log/latest/log/#implementing-a-logger) is defined - The custom logger accesses `rand::rng()` (previously `rand::thread_rng()`) and calls any `TryRng` (previously `RngCore`) methods on `ThreadRng` - The `ThreadRng` (attempts to) reseed while called from the custom logger (this happens every 64 kB of generated data) - Trace-level logging is enabled or warn-level logging is enabled and the random source (the `getrandom` crate) is unable to provide a new seed `TryRng` (previously `RngCore`) methods for `ThreadRng` use `unsafe` code to cast `*mut BlockRng` to `&mut BlockRng`. When all the above conditions are met this results in an aliased mutable reference, violating the Stacked Borrows rules. Miri is able to detect this violation in sample code. Since construction of [aliased mutable references is Undefined Behaviour](https://doc.rust-lang.org/stable/nomicon/references.html), the behaviour of optimized builds is hard to predict. Affected versions of `rand` are `>= 0.7, < 0.9.3` and `0.10.0`. --- ### Release Notes
rust-random/rand (rand) ### [`v0.9.3`](https://redirect.github.com/rust-random/rand/compare/0.9.2...0.9.3) [Compare Source](https://redirect.github.com/rust-random/rand/compare/0.9.2...0.9.3)
--- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - "" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- Release Notes: - N/A Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 90 +++++++++++++++++++++++++++--------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ddfa6e21f28c6b3da52ba84ae2f1f8761524e929..988834fa50cb4b402acb26104e964cce848d1e23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,7 +29,7 @@ dependencies = [ "portable-pty", "project", "prompt_store", - "rand 0.9.2", + "rand 0.9.3", "serde", "serde_json", "settings", @@ -81,7 +81,7 @@ dependencies = [ "log", "pretty_assertions", "project", - "rand 0.9.2", + "rand 0.9.3", "serde_json", "settings", "telemetry", @@ -184,7 +184,7 @@ dependencies = [ "pretty_assertions", "project", "prompt_store", - "rand 0.9.2", + "rand 0.9.3", "regex", "reqwest_client", "rust-embed", @@ -379,7 +379,7 @@ dependencies = [ "project", "prompt_store", "proto", - "rand 0.9.2", + "rand 0.9.3", "release_channel", "remote", "remote_connection", @@ -2183,7 +2183,7 @@ dependencies = [ "language", "log", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "rope", "settings", "sum_tree", @@ -2434,7 +2434,7 @@ dependencies = [ "memmap2", "num-traits", "num_cpus", - "rand 0.9.2", + "rand 0.9.3", "rand_distr", "rayon", "safetensors", @@ -2927,7 +2927,7 @@ dependencies = [ "parking_lot", "paths", "postage", - "rand 0.9.2", + "rand 0.9.3", "regex", "release_channel", "rpc", @@ -3177,7 +3177,7 @@ dependencies = [ "prometheus", "prompt_store", "prost 0.9.0", - "rand 0.9.2", + "rand 0.9.3", "recent_projects", "release_channel", "remote", @@ -3511,7 +3511,7 @@ dependencies = [ "net", "parking_lot", "postage", - "rand 0.9.2", + "rand 0.9.3", "schemars", "serde", "serde_json", @@ -4087,7 +4087,7 @@ checksum = "6ddc2d09feefeee8bd78101665bd8645637828fa9317f9f292496dbbd8c65ff3" dependencies = [ "crc", "digest", - "rand 0.9.2", + "rand 0.9.3", "regex", "rustversion", ] @@ -4840,7 +4840,7 @@ dependencies = [ "markdown", "pretty_assertions", "project", - "rand 0.9.2", + "rand 0.9.3", "serde", "serde_json", "settings", @@ -5165,7 +5165,7 @@ dependencies = [ "pretty_assertions", "project", "pulldown-cmark 0.13.0", - "rand 0.9.2", + "rand 0.9.3", "regex", "release_channel", "semver", @@ -5229,7 +5229,7 @@ dependencies = [ "pretty_assertions", "project", "prompt_store", - "rand 0.9.2", + "rand 0.9.3", "release_channel", "reqwest_client", "rust-embed", @@ -5375,7 +5375,7 @@ dependencies = [ "project", "proptest", "proptest-derive", - "rand 0.9.2", + "rand 0.9.3", "regex", "release_channel", "rope", @@ -6259,7 +6259,7 @@ checksum = "4203231de188ebbdfb85c11f3c20ca2b063945710de04e7b59268731e728b462" dependencies = [ "half", "num-traits", - "rand 0.9.2", + "rand 0.9.3", "rand_distr", ] @@ -7127,7 +7127,7 @@ dependencies = [ "log", "parking_lot", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "regex", "rope", "schemars", @@ -7175,7 +7175,7 @@ dependencies = [ "language", "menu", "project", - "rand 0.9.2", + "rand 0.9.3", "remote_connection", "search", "serde_json", @@ -7247,7 +7247,7 @@ dependencies = [ "project", "prompt_store", "proto", - "rand 0.9.2", + "rand 0.9.3", "remote", "remote_connection", "schemars", @@ -7534,7 +7534,7 @@ dependencies = [ "postage", "profiling", "proptest", - "rand 0.9.2", + "rand 0.9.3", "raw-window-handle", "refineable", "regex", @@ -7770,7 +7770,7 @@ dependencies = [ "itertools 0.14.0", "log", "parking_lot", - "rand 0.9.2", + "rand 0.9.3", "raw-window-handle", "smallvec", "util", @@ -7876,7 +7876,7 @@ dependencies = [ "cfg-if", "crunchy", "num-traits", - "rand 0.9.2", + "rand 0.9.3", "rand_distr", "zerocopy", ] @@ -9293,7 +9293,7 @@ dependencies = [ "parking_lot", "postage", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "regex", "rpc", "semver", @@ -9893,7 +9893,7 @@ dependencies = [ "parking_lot", "pbjson-types", "prost 0.12.6", - "rand 0.9.2", + "rand 0.9.3", "reqwest 0.12.24", "rustls-native-certs 0.6.3", "scopeguard", @@ -10723,7 +10723,7 @@ dependencies = [ "log", "parking_lot", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "rope", "serde", "settings", @@ -11155,7 +11155,7 @@ dependencies = [ "num-iter", "num-traits", "once_cell", - "rand 0.9.2", + "rand 0.9.3", "serde", "smallvec", "zeroize", @@ -11649,7 +11649,7 @@ dependencies = [ "language_model_core", "log", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "schemars", "serde", "serde_json", @@ -13271,7 +13271,7 @@ dependencies = [ "prettier", "pretty_assertions", "project", - "rand 0.9.2", + "rand 0.9.3", "regex", "release_channel", "remote", @@ -13448,7 +13448,7 @@ dependencies = [ "bitflags 2.10.0", "num-traits", "proptest-macro", - "rand 0.9.2", + "rand 0.9.3", "rand_chacha 0.9.0", "rand_xorshift", "regex-syntax", @@ -13809,7 +13809,7 @@ dependencies = [ "bytes 1.11.1", "getrandom 0.3.4", "lru-slab", - "rand 0.9.2", + "rand 0.9.3", "ring", "rustc-hash 2.1.1", "rustls 0.23.33", @@ -13892,9 +13892,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +checksum = "7ec095654a25171c2124e9e3393a930bddbffdc939556c914957a4c3e0a87166" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", @@ -13960,7 +13960,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463" dependencies = [ "num-traits", - "rand 0.9.2", + "rand 0.9.3", ] [[package]] @@ -14742,7 +14742,7 @@ dependencies = [ "dasp_sample", "hound", "num-rational", - "rand 0.9.2", + "rand 0.9.3", "rand_distr", "rtrb", "symphonia", @@ -14758,7 +14758,7 @@ dependencies = [ "gpui", "heapless", "log", - "rand 0.9.2", + "rand 0.9.3", "rayon", "sum_tree", "tracing", @@ -14797,7 +14797,7 @@ dependencies = [ "gpui", "parking_lot", "proto", - "rand 0.9.2", + "rand 0.9.3", "rsa", "serde", "serde_json", @@ -15262,7 +15262,7 @@ dependencies = [ "flume", "futures 0.3.32", "parking_lot", - "rand 0.9.2", + "rand 0.9.3", "web-time", ] @@ -16689,7 +16689,7 @@ name = "streaming_diff" version = "0.1.0" dependencies = [ "ordered-float 2.10.1", - "rand 0.9.2", + "rand 0.9.3", "rope", "util", ] @@ -16813,7 +16813,7 @@ dependencies = [ "heapless", "log", "proptest", - "rand 0.9.2", + "rand 0.9.3", "rayon", "tracing", "zlog", @@ -17508,7 +17508,7 @@ dependencies = [ "libc", "log", "parking_lot", - "rand 0.9.2", + "rand 0.9.3", "regex", "release_channel", "schemars", @@ -17584,7 +17584,7 @@ dependencies = [ "log", "parking_lot", "postage", - "rand 0.9.2", + "rand 0.9.3", "regex", "rope", "smallvec", @@ -18735,7 +18735,7 @@ dependencies = [ "http 1.3.1", "httparse", "log", - "rand 0.9.2", + "rand 0.9.3", "rustls 0.23.33", "rustls-pki-types", "sha1", @@ -18754,7 +18754,7 @@ dependencies = [ "http 1.3.1", "httparse", "log", - "rand 0.9.2", + "rand 0.9.3", "rustls 0.23.33", "rustls-pki-types", "sha1", @@ -19093,7 +19093,7 @@ dependencies = [ "nix 0.29.0", "percent-encoding", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "regex", "rust-embed", "schemars", @@ -21720,7 +21720,7 @@ dependencies = [ "paths", "postage", "pretty_assertions", - "rand 0.9.2", + "rand 0.9.3", "rpc", "serde", "serde_json", @@ -22565,7 +22565,7 @@ dependencies = [ "num-traits", "once_cell", "parking_lot", - "rand 0.9.2", + "rand 0.9.3", "regex", "scc", "thiserror 1.0.69",