theater 0.3.14

A WebAssembly actor system for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
package wasi:random@0.2.8;

/// WASI Random provides cryptographically secure random data.
/// All functions must produce unpredictable data without blocking.
interface random {
    /// Generate cryptographically secure random bytes
    /// Returns a list of random bytes of the specified length
    get-random-bytes: func(len: u64) -> list<u8>;

    /// Generate a single random u64 value
    /// Equivalent to get-random-bytes but returns u64
    get-random-u64: func() -> u64;
}