Evaluation of the phase randomness of a light source in quantum-key-distribution systems with an attenuated laser | Synapse