tandem rng tandem-mojo GitHub

Tests

pixi run test         # CPU tests
pixi run test-gpu     # on a host with a supported GPU

Suite

Files

Fixtures

tests/vectors_data.mojo is generated from the spec repository's vectors.json by tools/gen_vectors.py. The dumps in tests/data are copies of tandem-c/tests/data. tests/conformance/*.json are byte copies of tandem-spec 2a4bd08 conformance/*.json. tools/gen_zig_tables.py writes zig_tables.mojo from the spec's tables/normal_f64_zig1024.json. CI checks all of them. mojo run -I . tools/dump_normals.mojo out.bin writes the bytes of tandem-c's tools/dump_normals.c, SHA-256 700ec4d2f4d6b82aaa56c6eff18a4e5919585fdbd093988773383d580ea610d1.

CI