"""Stable deterministic tie breaking shared with guitar and accompaniment.""" import hashlib def stable_rank(seed,value): return hashlib.sha256((seed+repr(value)).encode()).hexdigest()