perlin noise scroll test

I don't know about perlin noise's math well. maybe both sides of perlin noise are connected without any gap?
-------------------------
sides are smoothly connected when perlinNoise()'s fifth parameter 'stitch' is true.