import hashlib


def testfunc(res, i):
    """Return a hash of the index plus the other results."""
    m = hashlib.md5()
    m.update(str(i).encode('utf-8'))
    for r in res:
        m.update(r.encode('utf-8'))
    return m.hexdigest()