Skip to content

Conversation

@dhardy
Copy link
Member

@dhardy dhardy commented Apr 10, 2025

Fixes some documentation, as pointed out in #1624.

I considered deprecating or renaming these fns, but they have some utility and only really need doc fixes.

@dhardy dhardy requested a review from newpavlov April 10, 2025 16:04
Copy link
Member

@newpavlov newpavlov left a comment

Choose a reason for hiding this comment

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

What about changing the asserts to equality?

@dhardy
Copy link
Member Author

dhardy commented Apr 10, 2025

I would, but that's technically a breaking change.

@newpavlov
Copy link
Member

newpavlov commented Apr 10, 2025

Technically, yes. But I think it's fine since I don't think any downstream users rely on the non-equal case and we could declare that it's a "bug fix" (if we are to stretch the meaning far enough). We had a similar "breaking change" in getrandom: rust-random/getrandom#614.

@vks
Copy link
Collaborator

vks commented Apr 11, 2025

Why do you want to change the assert? I don't really see the harm, any unused source bytes are just ignored.

@dhardy
Copy link
Member Author

dhardy commented Apr 11, 2025

Unused input bytes are a possible indicator of mis-use. But I think it's best not to change the assert now (possibly on the next breaking change, but not important).

@dhardy dhardy merged commit d468501 into master Apr 11, 2025
15 checks passed
@dhardy dhardy deleted the push-ltnylznotyzl branch April 11, 2025 08:47
mingulov added a commit to mingulov/rand that referenced this pull request May 17, 2025
The file `rand_core/src/.le.rs.kate-swp` was unintentionally
added in PR rust-random#1626. This commit removes the extraneous file.
benjamin-lieser pushed a commit that referenced this pull request May 19, 2025
# Summary

The file `rand_core/src/.le.rs.kate-swp` was unintentionally added in PR
#1626. This commit removes the extraneous file.

# Motivation
This file is a temporary editor swap file and serves no purpose in the
repository. It was likely added accidentally.

# Details
No changes for `CHANGELOG.md` - it is a minor change.
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.

4 participants