How do you sanitize a raycast shotgun?

Ok. For normal raycast guns, you just check if the origin of the ray is close enough and if the ray’s closest point is close enough. But what about shotguns??? How do you check the random spread of the rays and sanitize it?