def getSeed (r):
    """
    Return the current seed used by the random generator
    """
    intg = r.getIntegrator("gillespie")
    if intg is None:
        raise ValueError("model is not loaded")
    return intg['seed']