Skip to content

wasip3: Limit randomness instead of trapping#12794

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:update-randomness
Mar 17, 2026
Merged

wasip3: Limit randomness instead of trapping#12794
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:update-randomness

Conversation

@alexcrichton
Copy link
Member

This updates the behavior of the randomness-generating interfaces in WASIp3 to account for recent spec changes, notably the ability for the guest to receive less random bytes than requested to limit allocations the host is forced to do.

cc WebAssembly/WASI#901

This updates the behavior of the randomness-generating interfaces in
WASIp3 to account for recent spec changes, notably the ability for the
guest to receive less random bytes than requested to limit allocations
the host is forced to do.

cc WebAssembly/WASI#901
@alexcrichton alexcrichton requested review from a team as code owners March 17, 2026 21:04
@alexcrichton alexcrichton requested review from pchickey and removed request for a team March 17, 2026 21:04
@alexcrichton alexcrichton enabled auto-merge March 17, 2026 21:12
@alexcrichton alexcrichton added this pull request to the merge queue Mar 17, 2026
Merged via the queue into bytecodealliance:main with commit 75404ec Mar 17, 2026
46 checks passed
@alexcrichton alexcrichton deleted the update-randomness branch March 17, 2026 21:59
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