René's URL Explorer Experiment


Title: Fix getrandom 0.4.0 upgrade compatibility by updating mt19937 to v3.3.0 by Copilot · Pull Request #6971 · RustPython/RustPython · GitHub

Open Graph Title: Fix getrandom 0.4.0 upgrade compatibility by updating mt19937 to v3.3.0 by Copilot · Pull Request #6971 · RustPython/RustPython

X Title: Fix getrandom 0.4.0 upgrade compatibility by updating mt19937 to v3.3.0 by Copilot · Pull Request #6971 · RustPython/RustPython

Description: The getrandom 0.3.4→0.4.0 upgrade fails due to incompatibilities with the existing mt19937 v3.1 dependency. This PR upgrades to mt19937 v3.3.0 which uses rand_core 0.10 and is fully compatible with getrandom 0.4.0. Changes Updated Dependencies mt19937: Updated from version 3.1 to git version 3.3.0 (branch: version from https://github.com/RustPython/mt19937) Uses rand_core 0.10 which is compatible with getrandom 0.4.0 rand_core: Updated workspace dependency from 0.9 to 0.10 getrandom: Added sys_rng feature to workspace dependency (required for SysRng type) Random Module Updates Updated crates/stdlib/src/random.rs to use rand_core 0.10 API: Import Rng trait instead of deprecated RngCore Use MT19937::try_from_rng(&mut getrandom::SysRng) instead of try_from_os_rng() Error handling now uses std::io::Error::other() for version-agnostic error creation // Before: uses old API MT19937::try_from_os_rng() .map_err(|e| std::io::Error::from(e).to_pyexception(vm))? // After: uses rand_core 0.10 API MT19937::try_from_rng(&mut getrandom::SysRng).map_err(|e| { std::io::Error::other(format!("failed to initialize RNG: {}", e)) .to_pyexception(vm) })? WASM Build Support Explicit getrandom = { version = "0.3", features = ["wasm_js"] } dependency for WASM targets in rustpython-stdlib Required because ahash v0.8.12 (transitive dependency) still uses getrandom 0.3 This workaround can be removed once ahash updates to getrandom 0.4 Testing ✅ Regular builds compile successfully ✅ WASM builds compile successfully (wasm32-unknown-unknown target) ✅ Random module functionality verified (seeded and unseeded random generation) ✅ All existing tests pass The solution properly addresses the getrandom 0.4.0 compatibility by using the updated mt19937 version rather than workarounds. 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Open Graph Description: The getrandom 0.3.4→0.4.0 upgrade fails due to incompatibilities with the existing mt19937 v3.1 dependency. This PR upgrades to mt19937 v3.3.0 which uses rand_core 0.10 and is fully compatible with...

X Description: The getrandom 0.3.4→0.4.0 upgrade fails due to incompatibilities with the existing mt19937 v3.1 dependency. This PR upgrades to mt19937 v3.3.0 which uses rand_core 0.10 and is fully compatible with...

Opengraph URL: https://github.com/RustPython/RustPython/pull/6971

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a4a680ce-8bce-809f-23ab-ee9148ce5126
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD4F6:1BB86F:4CD7C7:6CBEBB:6A637EC7
html-safe-nonceda891c9d15d06eb1f60842dd82e5bf5221cc759389debb74ea78f60c94bc302b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEY2OjFCQjg2Rjo0Q0Q3Qzc6NkNCRUJCOjZBNjM3RUM3IiwidmlzaXRvcl9pZCI6IjYzNDQ3OTgzOTYwODk1OTc2MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac11b9d29f424127366ad0bb3ac44fb7d14f3c37ecf94d118fada105311b5b6126
hovercard-subject-tagpull_request:3238451974
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6971/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altThe getrandom 0.3.4→0.4.0 upgrade fails due to incompatibilities with the existing mt19937 v3.1 dependency. This PR upgrades to mt19937 v3.3.0 which uses rand_core 0.10 and is fully compatible with...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4c1de337de00c7969335f8866af41463301071379a3a15fba12e9b85aa6378d6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea4df32552e4c631011bdcd4c81cc3d7408664a8b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/6971/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F6971%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F6971%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/6971/files
Reloadhttps://github.com/RustPython/RustPython/pull/6971/files
Reloadhttps://github.com/RustPython/RustPython/pull/6971/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6971/files
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 294 https://github.com/RustPython/RustPython/issues
Pull requests 107 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
Copilothttps://github.com/apps/copilot-swe-agent
dependabot/cargo/getrandom-0.4.0https://github.com/RustPython/RustPython/tree/dependabot/cargo/getrandom-0.4.0
copilot/sub-pr-6968https://github.com/RustPython/RustPython/tree/copilot/sub-pr-6968
Conversation 6 https://github.com/RustPython/RustPython/pull/6971
Commits 5 https://github.com/RustPython/RustPython/pull/6971/commits
Checks 0 https://github.com/RustPython/RustPython/pull/6971/checks
Files changed https://github.com/RustPython/RustPython/pull/6971/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6971/files
Fix getrandom 0.4.0 upgrade compatibility by updating mt19937 to v3.3.0 https://github.com/RustPython/RustPython/pull/6971/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/6971/files
4cbdf68 Bump getrandom from 0.3.4 to 0.4.0 dependabot[bot] Feb 2, 2026 https://github.com/RustPython/RustPython/pull/6971/commits/4cbdf682cd46e5a7cbcb9e60e9ef4b2d4ecce44d
7b98791 Initial plan Copilot Feb 2, 2026 https://github.com/RustPython/RustPython/pull/6971/commits/7b987916165336ea6d17d9e05ea7e9a185bcbb86
a03b499 Fix getrandom 0.4.0 compatibility in random module Copilot Feb 2, 2026 https://github.com/RustPython/RustPython/pull/6971/commits/a03b49970de45c894c4e5d7d2c22bc27bb271b12
aa09bb7 Fix WASM CI failure by enabling getrandom wasm_js feature Copilot Feb 3, 2026 https://github.com/RustPython/RustPython/pull/6971/commits/aa09bb7d5c51a78aa4f575d1f3c2a1a79225b246
d7cb107 Replace mt19937 3.1 with git version 3.3.0 and update to rand_core 0.10 Copilot Feb 3, 2026 https://github.com/RustPython/RustPython/pull/6971/commits/d7cb107c5192533bbfc2eb87d9e887a457c2a731
Clear filters https://github.com/RustPython/RustPython/pull/6971/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6971/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6971/files
Cargo.lock https://github.com/RustPython/RustPython/pull/6971/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/6971/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Cargo.toml https://github.com/RustPython/RustPython/pull/6971/files#diff-206ca536c8a0e972ae8dd6a3c7f1b87f2cf39bc248bc1ea0735ef140ab4b290c
random.rs https://github.com/RustPython/RustPython/pull/6971/files#diff-931bc0f3f2b22d421df86bcc3650d405a9a4db72708d027573f179e01ed8f9ff
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6971/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.