Temazepam (Restoril) is a controlled substance, which means that it's more likely to be misused or cause dependence. There are federal and state laws that limit the amount of medication that can be prescribed or dispensed within a certain period of time.