Hazard function and failure laws