Function wasmer_wasix::syscalls::wasi::random_get::random_get

source ·
pub fn random_get<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    buf: WasmPtr<u8, M>,
    buf_len: M::Offset,
) -> Errno
Expand description

§random_get()

Fill buffer with high-quality random data. This function may be slow and block Inputs:

  • void *buf A pointer to a buffer where the random bytes will be written
  • size_t buf_len The number of bytes that will be written