Sha256: f03c15c1b242cb6f7e14e001c4847400ef9c397b0258570082c48c80242f0dc4

Contents?: true

Size: 1007 Bytes

Versions: 25

Compression:

Stored size: 1007 Bytes

Contents

;; WASI Random API.
;;
;; Some content here is derived from [CloudABI](https://github.com/NuxiNL/cloudabi).
;;
;; This is a `witx` file. See [here](https://github.com/WebAssembly/WASI/tree/master/docs/witx.md)
;; for an explanation of what that means.

(use "typenames.witx")

(module $wasi_ephemeral_random
  ;;; Linear memory to be accessed by WASI functions that need it.
  (import "memory" (memory))

  ;;; Write high-quality random data into a buffer.
  ;;; This function blocks when the implementation is unable to immediately
  ;;; provide sufficient high-quality random data.
  ;;; This function may execute slowly, so when large mounts of random data are
  ;;; required, it's advisable to use this function to seed a pseudo-random
  ;;; number generator, rather than to provide the random data directly.
  (@interface func (export "get")
    ;;; The buffer to fill with random data.
    (param $buf (@witx pointer u8))
    (param $buf_len $size)
    (result $error (expected (error $errno)))
  )
)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
wasmtime-18.0.3 ./ext/cargo-vendor/wasi-common-18.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-17.0.1 ./ext/cargo-vendor/wasi-common-17.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-17.0.0 ./ext/cargo-vendor/wasi-common-17.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-16.0.0 ./ext/cargo-vendor/wasi-common-16.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-15.0.1 ./ext/cargo-vendor/wasi-common-15.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-15.0.0 ./ext/cargo-vendor/wasi-common-15.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-14.0.4 ./ext/cargo-vendor/wasi-common-14.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-14.0.3 ./ext/cargo-vendor/wasi-common-14.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-14.0.1 ./ext/cargo-vendor/wasi-common-14.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-14.0.0 ./ext/cargo-vendor/wasi-common-14.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-13.0.0 ./ext/cargo-vendor/wasi-common-13.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-12.0.1 ./ext/cargo-vendor/wasi-common-12.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-12.0.0 ./ext/cargo-vendor/wasi-common-12.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-11.0.0 ./ext/cargo-vendor/wasi-common-11.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-10.0.1 ./ext/cargo-vendor/wasi-common-10.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-10.0.0 ./ext/cargo-vendor/wasi-common-10.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-9.0.4 ./ext/cargo-vendor/wasi-common-9.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-9.0.1 ./ext/cargo-vendor/wasi-common-9.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-8.0.0 ./ext/cargo-vendor/wasi-common-8.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx
wasmtime-7.0.0 ./ext/cargo-vendor/wasi-common-7.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx