California’s death penalty is unconstitutional, a federal judge in Los Angeles has ruled, The Associated Press and Reuters reported Wednesday.

Another ruling in Northern California has kept the death penalty on hold in the state for years, the AP reported.

In the case of a prisoner condemned 20 years ago, U.S. District Court Judge Cormac J. Carney wrote that arbitrary factors determine whether an individual will be executed, the wire service said.

Carney said that to take "nearly a generation" to decide on Jones' appeals is unconstitutional, Reuters reported.

The judge vacated the death sentence of Ernest Dewayne Jones, according to the AP.