Brownian dynamics of charged particles in a constant magnetic field