Skip to main content

Module random

Module random 

Source

Structs§

Deterministic
Implement insecure-random using a deterministic cycle of bytes.
WasiRandom
A helper struct which implements HasData for the wasi:random APIs.
WasiRandomCtx
WasiRandomNamed
A helper struct which implements HasData for the wasi:random APIs when used in combination with named imports.

Constants§

DEFAULT_MAX_SIZE
Default largest length accepted by wasi 0.2 get-random-bytes and get-insecure-random-bytes methods. This constant must match docs in cli-flags crate.

Traits§

WasiRandomNamedView
A trait used to look up a specific wasi:random context for a named import.
WasiRandomView

Functions§

thread_rng