dariuscty's picture
Restore RSI-Anything inference resources and LabHorizon dataset
672ecc3 verified
Raw History Blame Contribute Delete
178 Bytes
import hashlib
def stable_seed(*parts):
payload = ':'.join((str(part) for part in parts))
return int.from_bytes(hashlib.sha256(payload.encode()).digest()[:4], 'little')