Magnetic field amplification by the small-scale dynamo in the early Universe