def METHOD_NAME():
    n_registered = len(entropy.RANDOMS_TO_MANAGE)
    def f():
        r = random.Random()
        register_random(r)
        assert len(entropy.RANDOMS_TO_MANAGE) == n_registered + 1
    f()
    gc_collect()
    assert len(entropy.RANDOMS_TO_MANAGE) == n_registered