Kolmogorov-Sinai entropy and Lyapunov spectra of a hard-sphere gas