fixed white noise function