currentCompositeKeyHashCode

Property

Common
public val currentCompositeKeyHashCode: CompositeKeyHashCode

A higher-precision variation of currentCompositeKeyHash used to map externally stored state to the composition. By stepping up to a Long, this variation of the key hash is exponentially less likely to experience a collision.

In practice, because the hash is not perfectly distributed and because there are situations where the runtime can't uniquely identify certain repeated content, collisions are still possible. This higher precision does, however, afford more confidence in the assumption that an arbitrarily sized composition hierarchy will not experience two unrelated groups having the same key hash.