From dc53ad829502acd2b60b3611934c2e3722ef9687 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 3 Nov 2025 13:22:42 -0800 Subject: [PATCH] [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. --- wit-0.3.0-draft/worlds.wit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wit-0.3.0-draft/worlds.wit b/wit-0.3.0-draft/worlds.wit index 942c47e..5a11368 100644 --- a/wit-0.3.0-draft/worlds.wit +++ b/wit-0.3.0-draft/worlds.wit @@ -6,7 +6,7 @@ package wasi:http@0.3.0-rc-2025-09-16; world service { /// HTTP services have access to time and randomness. include wasi:clocks/imports@0.3.0-rc-2025-09-16; - import wasi:random/random@0.3.0-rc-2025-09-16; + include wasi:random/imports@0.3.0-rc-2025-09-16; /// Services have standard output and error streams which are expected to /// terminate in a developer-facing console provided by the host.