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 a testcase for getentropy #169

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

caspervonb
Copy link
Contributor

@caspervonb caspervonb commented Jan 16, 2021

This adds a basic testcase for getentropy which checks for errno and a sane result.


int sum = 0;
for (int i = 0; i < 256; i++) {
sum += buf[i];
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use unsigned types and ^= instead of += to check for constant output (instead of specifically 0 output).

@caspervonb
Copy link
Contributor Author

caspervonb commented Jan 16, 2021

Is the CI here broken? appears that it fails on checkout.

Base automatically changed from master to main January 19, 2021 23:27
@abrown abrown self-assigned this Jul 25, 2023
@abrown abrown merged commit 7c0558b into WebAssembly:main Jul 26, 2023
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.

3 participants