Title: PR #626 (rand 0.10) breaks pkgs/web-gen: thread_rng removed and Rng renamed in rand 0.10, no source updated · Issue #628 · developing-today/code · GitHub
Open Graph Title: PR #626 (rand 0.10) breaks pkgs/web-gen: thread_rng removed and Rng renamed in rand 0.10, no source updated · Issue #628 · developing-today/code
X Title: PR #626 (rand 0.10) breaks pkgs/web-gen: thread_rng removed and Rng renamed in rand 0.10, no source updated · Issue #628 · developing-today/code
Description: Finding Open Renovate PR #626 ("Update Rust crate rand [SECURITY]", head 20277913b714e3a96dd3961373da4bbe891946db) bumps pkgs/web-gen from rand 0.9 to rand 0.10.0 (pkgs/web-gen/Cargo.toml: rand = "0.9.0" → "0.10.0"; lock resolves rand 0....
Open Graph Description: Finding Open Renovate PR #626 ("Update Rust crate rand [SECURITY]", head 20277913b714e3a96dd3961373da4bbe891946db) bumps pkgs/web-gen from rand 0.9 to rand 0.10.0 (pkgs/web-gen/Cargo.toml: rand = "...
X Description: Finding Open Renovate PR #626 ("Update Rust crate rand [SECURITY]", head 20277913b714e3a96dd3961373da4bbe891946db) bumps pkgs/web-gen from rand 0.9 to rand 0.10.0 (pkgs/web-gen/Cargo.toml...
Opengraph URL: https://github.com/developing-today/code/issues/628
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PR #626 (rand 0.10) breaks pkgs/web-gen: thread_rng removed and Rng renamed in rand 0.10, no source updated","articleBody":"## Finding\n\nOpen Renovate PR #626 (\"Update Rust crate rand [SECURITY]\", head `20277913b714e3a96dd3961373da4bbe891946db`) bumps `pkgs/web-gen` from rand 0.9 to **rand 0.10.0** (`pkgs/web-gen/Cargo.toml`: `rand = \"0.9.0\"` → `\"0.10.0\"`; lock resolves rand 0.10.3) with **no source changes**. rand 0.10 removes/renames the exact APIs web-gen uses, so merging the PR as-is breaks the web-gen build. This was verified empirically, not inferred (probe below).\n\n## Evidence\n\n- PR: https://github.com/developing-today/code/pull/626 (OPEN at filing time; checks already red: `renovate/artifacts` FAIL and `treefmt check` FAIL).\n- web-gen's only rand usage, on current main (`origin/main` ebb99893):\n - `pkgs/web-gen/src/main.rs:10` — `use rand::Rng;`\n - `pkgs/web-gen/src/main.rs:135-138` — `let mut rng = rand::thread_rng(); rng.gen_range(0..101)`\n- PR #626's own release notes for rand 0.10.0 state: \"Rename `Rng` -> `RngExt`\" (#1717) and \"Use Edition 2024 and MSRV 1.85\" (#1653).\n- Differential probe (scratch crate containing web-gen's verbatim three lines, run this review):\n - Against rand **0.9.5** (current main's lock): compiles — deprecation warnings only (`thread_rng` deprecated, `gen_range` renamed to `random_range`).\n - Against rand **0.10.3** (the version PR #626's web-gen lock resolves to): **fails** — `error[E0425]: cannot find function 'thread_rng' in crate 'rand'`, plus the `rand::Rng` import is no longer the extension trait.\n- MSRV clash: rand 0.10 requires Rust 1.85, but `pkgs/web-gen/rust-toolchain` pins `nightly-2023-07-20`, so the crate's own pinned toolchain cannot build rand 0.10 at all.\n- The same PR also bumps rand in two doc/ locations with no source adaptation (`doc/.../spikes/beekem/Cargo.toml` 0.8.5 → 0.9.0, whose `src/concurrency.rs` / `src/costs.rs` call `gen_range` throughout; and a vendored p2panda-core snapshot 0.8.5 → 0.9.3). Those are lower stakes but should be audited in the same pass.\n\n## Why it matters\n\nThe PR is labelled [SECURITY] (GHSA-cq8v-f236-94qc, low severity, requires a custom logger calling `rand::rng()` during reseed — web-gen does not do this), so it looks like a routine safe merge. Merged as-is it silently breaks `pkgs/web-gen` compilation; no CI job in this repo builds web-gen, so nothing would catch it at merge time.\n\n## Acceptance criteria\n\n- [ ] PR #626 is not merged in its current form for `pkgs/web-gen`: either web-gen's rand requirement stays on the patched 0.9.x line, or the bump lands together with source adaptation (`rand::rng()`, `random_range`, `RngExt`) and a toolchain that satisfies rand 0.10's MSRV 1.85.\n- [ ] `cargo check` for `pkgs/web-gen` passes against the rand version its lockfile pins after the change.\n- [ ] The beekem spike and vendored p2panda-core rand bumps in the same PR are audited (adapt, pin, or drop from the PR) rather than carried silently.\n- [ ] PR #626's failing checks (`renovate/artifacts`, `treefmt check`) are green or explicitly explained before any merge.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T01:44:10Z","url":"https://github.com/developing-today/code/issues/628"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b28ea293-72c5-bb56-babf-668a2f3087b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 883C:DEC36:AACFB9:EA6C52:6B06994F |
| html-safe-nonce | af74433bc5abb3c3666166b372a306dfde1618dea4d29fdfdd83646cc5510ae5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNDOkRFQzM2OkFBQ0ZCOTpFQTZDNTI6NkIwNjk5NEYiLCJ2aXNpdG9yX2lkIjoiMzA1MjE1NTczNDQzNjQ3ODIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99e881d21030f410789966eaf7f65a42bcfc6cc90f51b965bec90f417ec49d17 |
| hovercard-subject-tag | issue:5990384857 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97f4f26e80446cbdd31f0e4495c43e82bde1bbb0a86475aed9d98a0a2fc40c04/developing-today/code/issues/628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97f4f26e80446cbdd31f0e4495c43e82bde1bbb0a86475aed9d98a0a2fc40c04/developing-today/code/issues/628 |
| og:image:alt | Finding Open Renovate PR #626 ("Update Rust crate rand [SECURITY]", head 20277913b714e3a96dd3961373da4bbe891946db) bumps pkgs/web-gen from rand 0.9 to rand 0.10.0 (pkgs/web-gen/Cargo.toml: rand = "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width