Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop using rand(lo:hi) for QuickerSort pivot selection #48241

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

LilithHafner
Copy link
Member

see discussion here: #45222 (comment)
fixes #48230
takes sorting out of the discussion in #48069
This is a regression in how easy it is to construct a pathological input with respect to master and julia-1.9.0-beta2, but not w.r.t. 1.8.5.

Also fix a comment that I noticed had gone stale.

@LilithHafner LilithHafner added domain:randomness Random number generation and the Random stdlib domain:sorting Put things in order labels Jan 11, 2023
base/sort.jl Outdated Show resolved Hide resolved
Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
@LilithHafner LilithHafner added backport 1.9 Change should be backported to release-1.9 status:merge me PR is reviewed. Merge when all tests are passing labels Jan 11, 2023
@LilithHafner LilithHafner merged commit 793eaa3 into master Jan 12, 2023
@LilithHafner LilithHafner deleted the derandomize-pivot-selection branch January 12, 2023 00:17
@LilithHafner LilithHafner removed the status:merge me PR is reviewed. Merge when all tests are passing label Jan 12, 2023
KristofferC pushed a commit that referenced this pull request Jan 13, 2023
Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
(cherry picked from commit 793eaa3)
@KristofferC KristofferC mentioned this pull request Jan 13, 2023
41 tasks
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:randomness Random number generation and the Random stdlib domain:sorting Put things in order
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default sort algorithm affects global RNG
4 participants