package correlation import ( "math/rand" "testing" "github.com/stretchr/testify/assert" ) func TestGeneratorNext(t *testing.T) { rand.Seed(0) seq := &MathRandSequencer{} gen := NewGenerator(seq) assert.Equal(t, "0194fdc2fa2ffcc041d3ff12045b73c8", gen.Next().String()) assert.Equal(t, "6e4ff95ff662a5eee82abdf44a2d0b75", gen.Next().String()) assert.Equal(t, "fb180daf48a79ee0b10d394651850fd4", gen.Next().String()) }