deterministic

Function deterministic 

Source
pub fn deterministic(seed: &str) -> String
Expand description

Deterministic 22-char GlobalId from an arbitrary seed. A faithful port of @ifc-lite/parser’s deterministicGlobalId (four independent 32-bit rolling hashes cross-mixed into a 128-bit state, stamped MSB-first as 2 + 21*6 bits), pinned by rust/export/tests/fixtures/deterministic_global_id_vectors.json.

The input is iterated as UTF-16 code units to match JavaScript’s charCodeAt.