Expand description
OpenEntropy WebAssembly bindings — browser-based entropy collection.
Exposes two entropy sources via wasm-bindgen:
- Timing jitter —
performance.now()micro-timing variations - Crypto seed mixer —
crypto.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_bytesof SHA-256 conditioned entropy from all available browser sources.