Lines Matching refs:random
1 package wasi:random@0.2.6;
9 /// Return a 128-bit value that may contain a pseudo-random value.
13 /// provide pseudo-random values to any program exposed to
30 /// The insecure interface for insecure pseudo-random numbers.
36 /// Return `len` insecure pseudo-random bytes.
45 get-insecure-random-bytes: func(len: u64) -> list<u8>;
47 /// Return an insecure pseudo-random `u64` value.
49 /// This function returns the same type of pseudo-random data as
50 /// `get-insecure-random-bytes`, represented as a `u64`.
52 get-insecure-random-u64: func() -> u64;
55 /// WASI Random is a random data API.
60 interface random {
61 /// Return `len` cryptographically-secure random or pseudo-random bytes.
64 /// fast as an adequately seeded cryptographically-secure pseudo-random
74 get-random-bytes: func(len: u64) -> list<u8>;
76 /// Return a cryptographically-secure random or pseudo-random `u64` value.
78 /// This function returns the same type of data as `get-random-bytes`,
81 get-random-u64: func() -> u64;
87 import random;