Dirac’s theorem for random regular graphs