Title: c++17 removed random_shuffle · Issue #24010 · matplotlib/matplotlib · GitHub
Open Graph Title: c++17 removed random_shuffle · Issue #24010 · matplotlib/matplotlib
X Title: c++17 removed random_shuffle · Issue #24010 · matplotlib/matplotlib
Description: std::random_shuffle is used here: https://github.com/matplotlib/matplotlib/blob/main/src/tri/_tri.cpp#L1469 It has been removed from c++17: https://en.cppreference.com/w/cpp/algorithm/random_shuffle The reason for removing std::random_sh...
Open Graph Description: std::random_shuffle is used here: https://github.com/matplotlib/matplotlib/blob/main/src/tri/_tri.cpp#L1469 It has been removed from c++17: https://en.cppreference.com/w/cpp/algorithm/random_shuffl...
X Description: std::random_shuffle is used here: https://github.com/matplotlib/matplotlib/blob/main/src/tri/_tri.cpp#L1469 It has been removed from c++17: https://en.cppreference.com/w/cpp/algorithm/random_shuffl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24010
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"c++17 removed random_shuffle","articleBody":"`std::random_shuffle` is used here:\r\nhttps://github.com/matplotlib/matplotlib/blob/main/src/tri/_tri.cpp#L1469\r\n\r\nIt has been removed from c++17:\r\nhttps://en.cppreference.com/w/cpp/algorithm/random_shuffle\r\n\r\n\u003e The reason for removing std::random_shuffle in C++17 is that the iterator-only version usually depends on [std::rand](https://en.cppreference.com/w/cpp/numeric/random/rand), which is now also discussed for deprecation. ([std::rand](https://en.cppreference.com/w/cpp/numeric/random/rand) should be replaced with the classes of the [\u003crandom\u003e](https://en.cppreference.com/w/cpp/header/random) header, as [std::rand](https://en.cppreference.com/w/cpp/numeric/random/rand) is considered harmful.) In addition, the iterator-only std::random_shuffle version usually depends on a global state. The std::shuffle's shuffle algorithm is the preferred replacement, as it uses a URBG as its 3rd parameter.","author":{"url":"https://github.com/hoodmane","@type":"Person","name":"hoodmane"},"datePublished":"2022-09-26T00:33:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/24010/matplotlib/issues/24010"}
| 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:2622f3fb-c1d3-9932-1147-5aafe83623a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84AA:D0A70:280833E:3940DDB:6A510419 |
| html-safe-nonce | dbb802894ebcb8a7142a3967e15194bb0775141768aa19b99b66c53127a4bc46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEFBOkQwQTcwOjI4MDgzM0U6Mzk0MEREQjo2QTUxMDQxOSIsInZpc2l0b3JfaWQiOiIzMzc2NTU4MzA3ODU2MjMwNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b511459d96c2c634713c8b1c13d0af80deb72460b231140af8a57d56063a96f3 |
| hovercard-subject-tag | issue:1385226539 |
| 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/matplotlib/matplotlib/24010/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f68f90488bcd77c171578deadee97c6d6b7f2a8251a1614c18da7b84fd611a5/matplotlib/matplotlib/issues/24010 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f68f90488bcd77c171578deadee97c6d6b7f2a8251a1614c18da7b84fd611a5/matplotlib/matplotlib/issues/24010 |
| og:image:alt | std::random_shuffle is used here: https://github.com/matplotlib/matplotlib/blob/main/src/tri/_tri.cpp#L1469 It has been removed from c++17: https://en.cppreference.com/w/cpp/algorithm/random_shuffl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hoodmane |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width