Snapshot · Oct 24, 2026 · Frozen documentation
SecureRandomWork
Captures the exact output range for one worker operation.
Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →
Module std.random
import std.random;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
pub init(Output: mut byte[])
pub init(Output: mut byte[])Captures the exact output range for one worker operation. Output: Writable range live through parent/worker terminal cleanup.
Invoke
pub readonly fn Invoke() -> Result<void, SecureRandomError>Runs one complete OS entropy request without post-commit cancellation. Return: Exact native completion, including any initialized failure prefix.
Documentation snapshot: October 24, 2026 About versions ↗