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