@pytest.mark.parametrize('factory', [sealapi.Blake2xbPRNGFactory.DefaultFactory(), sealapi.Blake2xbPRNGFactory(), sealapi.Blake2xbPRNGFactory([sealapi.random_uint64() for i in range(8)]), sealapi.Shake256PRNGFactory.DefaultFactory(), sealapi.Shake256PRNGFactory(), sealapi.Shake256PRNGFactory([sealapi.random_uint64() for i in range(8)])])
def test_randomgen(factory):
    assert (sealapi.random_uint64() != sealapi.random_uint64())
    for generator in [factory.create(), factory.create([sealapi.random_uint64() for i in range(8)])]:
        assert (generator.generate() != generator.generate())
        adapter = sealapi.RandomToStandardAdapter(generator)
        assert (adapter() != adapter())
        for i in range(1024):
            generator.refresh()
            generator.generate()
@pytest.mark.parametrize('factory', [sealapi.Blake2xbPRNGFactory.DefaultFactory(), sealapi.Blake2xbPRNGFactory(), sealapi.Blake2xbPRNGFactory([sealapi.random_uint64() for i in range(8)]), sealapi.Shake256PRNGFactory.DefaultFactory(), sealapi.Shake256PRNGFactory(), sealapi.Shake256PRNGFactory([sealapi.random_uint64() for i in range(8)])])
def test_randomgen(factory):
    assert (sealapi.random_uint64() != sealapi.random_uint64())
    for generator in [factory.create(), factory.create([sealapi.random_uint64() for i in range(8)])]:
        assert (generator.generate() != generator.generate())
        adapter = sealapi.RandomToStandardAdapter(generator)
        assert (adapter() != adapter())
        for i in range(1024):
            generator.refresh()
            generator.generate()