def generate_uuid(record, digest_alg='sha512'):
    """
    Generates a unique identifer for the record
    This is used so that the record can be identified
    without the record id being exposed.
    """
    st = ''
    for k, v in record.items():
        st += '%s=%s|' % k, v
    return hash(st, digest_alg=digest_alg)
