def dispKeyHashBucket(modelSetKey: str, dispKey: str) ->str:
    """ Disp Key Hash Bucket

    This method create an int from 0 to 255, representing the hash bucket for this
    key.

    This is simple, and provides a reasonable distribution

    :param modelSetKey:
    :param dispKey:

    :return:

    """
    if not modelSetKey:
        raise Exception('modelSetKey is None or zero length')
    if not dispKey:
        raise Exception('dispKey is None or zero length')
    hash = 0
    for char in dispKey:
        hash = (hash << 5) - hash + ord(char)
        hash = hash | 0
    hash = hash & 1023
    return '%s:%s' % (modelSetKey, hash)
