spec icon indicating copy to clipboard operation
spec copied to clipboard

Add `random_get()` to the ABI

Open mandarjog opened this issue 4 years ago • 4 comments

A high quality random number is needed for many reasons inside a Wasm module.

wasi_ephemeral_random.get defines such an API. proxy_wasm should use or define a compatible API.

mandarjog avatar Oct 01 '20 17:10 mandarjog

@PiotrSikora

mandarjog avatar Oct 01 '20 17:10 mandarjog

@mandarjog it's now supported in cpp-host https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/68, and it's upstreamed to Envoy's master branch https://github.com/envoyproxy/envoy/pull/13606

mathetake avatar Oct 19 '20 07:10 mathetake

How can this be called from Rust? Cannot find a mention of it in the Rust SDK

sonhal avatar Mar 25 '21 16:03 sonhal

How can this be called from Rust? Cannot find a mention of it in the Rust SDK

See the answer in the other issue you've opened in the Rust SDK.

PiotrSikora avatar Mar 25 '21 16:03 PiotrSikora