Shotgun assembly of random graphs