Skip to content

Implement getentropy via __wasi_random_get#22820

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:getentropy
Nov 1, 2024
Merged

Implement getentropy via __wasi_random_get#22820
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:getentropy

Conversation

@sbc100
Copy link
Copy Markdown
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

Comment thread src/library_wasi.js
@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
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