Skip to main content

seed_statement_minter

Function seed_statement_minter 

Source
pub fn seed_statement_minter(salt: u64)
Expand description

Seed the statement-id minter’s per-process salt. The kernel’s identity doctrine: OS randomness is native-only, wasm hosts supply theirs — a wasm host should call this once at boot with 64 host-random bits (unseeded wasm falls back to 0, i.e. the pre-salt time+nonce behaviour, and loses the cross-device guarantee). Native self-seeds from Uuid::new_v4() on first mint; a later seed call is a no-op.