#!/usr/bin/env python # Doh! Not deterministic. We can't use it in the frag-documents case. print("hash:",hash("some string")) import hashlib print("hash:", hashlib.sha1("some string".encode('utf-8')).hexdigest() )