From 95d18cc5e911e1ef1a357da4a96167ef08ce2385 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 16 Oct 2025 17:22:12 -0700 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/proxy.wit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wit-0.3.0-draft/proxy.wit b/wit-0.3.0-draft/proxy.wit index 223083e..58bc42c 100644 --- a/wit-0.3.0-draft/proxy.wit +++ b/wit-0.3.0-draft/proxy.wit @@ -5,7 +5,7 @@ package wasi:http@0.3.0-rc-2025-09-16; world imports { /// HTTP proxies 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; /// Proxies have standard output and error streams which are expected to /// terminate in a developer-facing console provided by the host.