# Introducing WASI for IC

**URL:** <https://forum.dfinity.org/t/introducing-wasi-for-ic/18583>\
**Category:** Developers\
**Tags:** Discussing\
**Created:** [February 19, 2023, 11:46am UTC](https://forum.dfinity.org/t/introducing-wasi-for-ic/18583 "2023-02-19T11:46:49Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![ulan](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ulan/32/2705_2.png) [@ulan](https://forum.dfinity.org/u/ulan)\
**Post date:** [February 25, 2023, 12:40pm UTC](https://forum.dfinity.org/t/introducing-wasi-for-ic/18583/30 "2023-02-25T12:40:51Z")

</div>

> @ulan mentioned to me that this problem may be solved in the future by supporting `raw_random()` in the System API as a synchronous call.

> But I wonder how this can be worked around at all, given that proper randomness requires an asynchronous call to the Management canister. I doubt that is going to change.

The execution layer of replica gets random bits as input in each round [[code](https://github.com/dfinity/ic/blob/master/rs/execution_environment/src/scheduler.rs#L1273)]. These bits are passed to the management canister to handle `raw_rand()` requests. I think we could use some of these bits to provide randomness to canister message execution synchronously. Having random bits during canister installation would be useful in many cases. We definitely need to check this with security/crypto experts because I am not sure if this would break some security properties of `raw_rand()`.

---

_[View the full topic](https://forum.dfinity.org/t/introducing-wasi-for-ic/18583)._
