Issue #1869: Nikaia’s keyed hash for untrusted map keys is std’s RandomState, SipHash-1-3…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-16 · updated 2026-11-16 · 0 comments

Filed by the driver from the Found: of the run of issue-1618 (#1618) (owner, 2026-11-06).

Found

Nikaia’s keyed hash for untrusted map keys is std’s RandomState, SipHash-1-3 (crates/nikaia-std/src/hash.rs Keyed, ADR-010 D5), where Rust entry 7’s hashbrown 0.15 default is foldhash, also seeded per process. On benches/game/k-nucleotide/speed.nika (HashMap[u64, i64] keyed by codes read from io::read_to_string(), built by nikaia run benches/game/game.nika -- k-nucleotide, opt-level 3, codegen-units 1, checks off) it costs 1236M instructions against 441M for the same program with io::read_to_string(trusted: true) (Fx), about 636 a letter of 958-989, and Rust entry 7 counts 392M; on main.nika (&str keys) hash_one plus Sip write are 1639M of 3172M. Whether a cheaper seeded hash (foldhash-like, per-process seed) may serve untrusted keys of fixed width or text is no decision yet

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues