A sample implementation of Cm_Diehard