Skip to main content

Crate openentropy_wasm

Crate openentropy_wasm 

Source
Expand description

OpenEntropy WebAssembly bindings — browser-based entropy collection.

Exposes two entropy sources via wasm-bindgen:

  1. Timing jitterperformance.now() micro-timing variations
  2. Crypto seed mixercrypto.getRandomValues() as an OS entropy seed

Plus a combined SHA-256 conditioned output (get_random_bytes) that mixes both sources. All raw sources produce bytes that can be further conditioned on the JS side or consumed directly.

Functions§

available_source_count
Return the number of available entropy sources in this WASM environment.
collect_crypto_random
Collect OS entropy via crypto.getRandomValues().
collect_timing_jitter
Collect entropy from performance.now() timing jitter.
get_random_bytes
Collect n_bytes of SHA-256 conditioned entropy from all available browser sources.