  We give a general Green formula for the planar Brownian motion, which we
apply to study the Aharonov--Bohm effect induced by Poisson distributed
magnetic impurities on a Brownian electron in the presence of an inhomogeneous
magnetic field.
