A stochastic model of Maxwell's equations in 1+1 dimensions