Skip to content

Conversation

dhardy
Copy link
Member

@dhardy dhardy commented Apr 9, 2025

  • Added a CHANGELOG.md entry

Summary

Allow fn rand::seq::index::sample_weighted and fn IndexedRandom::choose_multiple_weighted to return fewer than amount results.

Details

This restriction was added in #1382 without being mentioned in the changelog, and it appears best to revert this behaviour (#1619).

dhardy added 3 commits April 9, 2025 09:34
@dhardy dhardy requested a review from benjamin-lieser April 9, 2025 09:06
Copy link
Member

@benjamin-lieser benjamin-lieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@dhardy dhardy merged commit 5f5b580 into master Apr 9, 2025
15 checks passed
@dhardy dhardy deleted the push-rzyotswpvxpx branch April 9, 2025 14:54
zydou pushed a commit to zydou/arti that referenced this pull request Apr 30, 2025
Rand 0.9.1 reverted the changes that caused #1903,
in rust-random/rand#1623.

This broke our test that made sure that rand wasn't going to change
their behavior _again_ :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants