Magnetic field generation in the underdense plasma