Section 122(8) in The Code of Criminal Procedure, 1973
(8)Imprisonment for failure to give security for good behaviour shall, where the proceedings have been taken under section 108, be simple, and, where the proceedings have been taken under section 109 or section 110, be rigorous or simple as the Court or Magistrate in each case directs.