Rantoul man sentenced to 3 years in cannabis case