import random


def white_noise(amplitude=0.0125):
    """
    Calculates a white-noise
    :param amplitude: the amplitude of the noise
    :return: an infinite iterator of the white-noise
    """

    def __white_noise():
        while True:
            yield random.uniform(-1, 1) * amplitude

    return __white_noise()