Connectivity of random regular graphs generated by the pegging algorithm