(x)
return int(sha1(np.ascontiguousarray(x).data)
               .hexdigest(), base=16) & 0xffffffff
For a given distribution, calculate a hash value that can be used to
    seed the RNG.

    Parameters
    ----------
    x : ndarray
        Input distribution.

    Returns
    -------
    hash : int
        Hash function result.
For a given distribution, calculate a hash value that can be used to
    seed the RNG.
For a given distribution calculate a hash value that can be used to seed the RNG .
def hash_dist(x):
    """
    For a given distribution, calculate a hash value that can be used to
    seed the RNG.

    Parameters
    ----------
    x : ndarray
        Input distribution.

    Returns
    -------
    hash : int
        Hash function result.
    """
    return int(sha1(np.ascontiguousarray(x).data)
               .hexdigest(), base=16) & 0xffffffff
def hash_dist ( x ) : return int ( sha1 ( np . ascontiguousarray ( x ) . data ) . hexdigest ( ) , base = 16 ) & 0xffffffff