Restoril, generic name for temazepam, is a medication that is prescribed as a short term treatment for insomnia. It belongs to the class of medicines known as benzodiazepines.