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

Add back empty slice check #298

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Add back empty slice check #298

merged 1 commit into from
Oct 21, 2022

Conversation

josephlr
Copy link
Member

#291 inadvertantly removed this check

See #104 for why this was added in the first place. Also, per our docs:

If dest is empty, getrandom immediately returns success, making
no calls to the underlying operating system.

Signed-off-by: Joe Richey joerichey@google.com

#291 inadvertantly removed
this check

See #104 for why this was
added in the first place. Also, per our docs:

> If `dest` is empty, `getrandom` immediately returns success, making
> no calls to the underlying operating system.

Signed-off-by: Joe Richey <joerichey@google.com>
@newpavlov newpavlov merged commit 55ad4c4 into master Oct 21, 2022
@newpavlov newpavlov deleted the empty branch October 21, 2022 14:02
briansmith added a commit to briansmith/getrandom that referenced this pull request Oct 21, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
briansmith added a commit to briansmith/getrandom that referenced this pull request Oct 21, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
briansmith added a commit to briansmith/getrandom that referenced this pull request Oct 21, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
briansmith added a commit to briansmith/getrandom that referenced this pull request Oct 21, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
briansmith added a commit to briansmith/getrandom that referenced this pull request Oct 21, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
josephlr pushed a commit that referenced this pull request Oct 22, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in #298.
josephlr pushed a commit to josephlr/getrandom that referenced this pull request Oct 22, 2022
Modify the custom tests so that they would have detected and prevented
the issue fixed in rust-random#298.
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