Deterministic gauge library