tandem-rs
Rust implementation of Tandem8x32. The crate tandem-rng
produces the stream of the specification
bit for bit, with SIMD fills on CPUs, rayon fills, and a
wgpu fill on GPUs.
- API: the generator, the features, the derived draws and the GPU fill.
- Design: the row loop, the features, and how the derived draws work.
- Tests: what each test file checks.
- Performance: CPU, rayon and GPU figures.
Install
tandem-rng = { git = "https://github.com/tandem-rng/tandem-rs" }
# features: std and simd-intrinsics (default), rayon, serde, wgpuRust 1.89, edition 2024. The crate is no_std without the
default std feature.
AI assistance
This port was written with the help of large language models under human direction. The design and the specification are human work, as is much of the Julia implementation. The code is tested bit for bit against every vector of the specification and against long stream dumps from the Julia implementation, and every value must match. The output does not depend on who or what wrote the code.