Forgot to switch return type for noisegenerators method generatenoise