Skip to content

Implement getentropy via __wasi_random_get #22820

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
Nov 1, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 31, 2024

This allows it to work in standalone mode.

This change also includes a fix to actually honor the __proxy: 'none' mode. It seems like we were just falling back to async proxying in this case, but we only had a single function that used this mode which was __syscall_fadvise64.

Fixes: #22782

@sbc100 sbc100 enabled auto-merge (squash) October 31, 2024 20:35
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 31, 2024
It looks like this mode was broken from the moment it as added back in
PR emscripten-core#20110.  However it went unnoticed since it was only being used with
a single function: `__syscall_fadvise64`.

Split out from emscripten-core#22820.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 31, 2024
It looks like this mode was broken from the moment it as added back in
PR emscripten-core#20110.  However it went unnoticed since it was only being used with
a single function: `__syscall_fadvise64`.

Split out from emscripten-core#22820.
sbc100 added a commit that referenced this pull request Oct 31, 2024
It looks like this mode was broken from the moment it as added back in
PR #20110. However it went unnoticed since it was only being used with a
single function: `__syscall_fadvise64`.

Split out from #22820.
This allows it to work in standalone mode.

Fixes: emscripten-core#22782
@sbc100 sbc100 merged commit 8f08ccc into emscripten-core:main Nov 1, 2024
28 checks passed
@sbc100 sbc100 deleted the getentropy branch November 1, 2024 19:51
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.

Standalone: implement getentropy() via wasi_snapshot_preview1.random_get()
2 participants