Skip to content

Commit dc53ad8

Browse files
committed
[0.3.0-draft] Include the full wasi:random/imports
This switches `wasi:http/proxy` from just using `wasi:random/random` to also including `wasi:random/insecure` and `wasi:random/insecure-seed`. These "insecure" interfaces allow applications which need random numbers for purposes other than cryptography or UUIDs to request them, which can give hosts more flexibility when running in environments with scarce entropy, such as early boot environments. These interfaces should be easy to support in any host that already supports `wasi:random/random`. They permit alternate implementation strategies, but don't require them.
1 parent 24a85a5 commit dc53ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wit-0.3.0-draft/worlds.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package wasi:http@0.3.0-rc-2025-09-16;
66
world service {
77
/// HTTP services have access to time and randomness.
88
include wasi:clocks/imports@0.3.0-rc-2025-09-16;
9-
import wasi:random/random@0.3.0-rc-2025-09-16;
9+
include wasi:random/imports@0.3.0-rc-2025-09-16;
1010

1111
/// Services have standard output and error streams which are expected to
1212
/// terminate in a developer-facing console provided by the host.

0 commit comments

Comments
 (0)