Skip to content

WASI: use getentropy to get randomized bytes #3025

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

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

MaxDesiatov
Copy link
Contributor

/dev/urandom is not available on WASI, it makes more sense to define read_random in terms of getentropy on that platform.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test Linux platform

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test Linux platform

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test Linux platform

@MaxDesiatov MaxDesiatov merged commit 3211ef0 into swiftlang:main Aug 8, 2021
@MaxDesiatov MaxDesiatov deleted the maxd/wasi-fix-uuid branch August 8, 2021 14:39
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