def METHOD_NAME(brng, meth_args_kwargs):
    meth, args, kwargs = meth_args_kwargs
    seed = 123456789
    # Original
    bgen = getattr(randomgen, brng)(seed=seed)
    if brng == 'PCG64':
        state = bgen.state
        state['state'] = {'state': seed, 'inc': 0}
        bgen.state = state
    rg_base = randomgen.Generator(bgen)
    # Firedrake wrapper
    fgen = getattr(randomfunctiongen, brng)(seed=seed)
    if brng == 'PCG64':
        state = fgen.state
        state['state'] = {'state': seed, 'inc': 0}
        fgen.state = state
    rg_wrap = randomfunctiongen.Generator(fgen)
    if meth == 'bytes':
        a0 = getattr(rg_base, meth)(17)
        a1 = getattr(rg_wrap, meth)(17)
        assert a0 == a1
        return
    elif meth == 'shuffle':
        arr0 = np.arange(17)
        arr1 = np.arange(17)
        getattr(rg_base, meth)(arr0)
        getattr(rg_wrap, meth)(arr1)
        assert np.allclose(arr0, arr1)
        return
    for i in range(1, 10):
        assert np.allclose(getattr(rg_base, meth)(*args, **kwargs), getattr(rg_wrap, meth)(*args, **kwargs))