Tinnitus can have a number of causes. Sometimes, it is a side effect of medication. You can talk to your doctor about changing what you take. Most of the time, it is permanent and harmless. Hearing specialists often recommend getting a white noise machine and running it at night, so the ringing is less distracting.