fixed noise seed function