A parabola is drawn with focus at one of the foci of the ellipse x2a2+y2b2=1 (where a>b) and directrix passing through the other focus and perpendicular to the major axes of the ellipse. If latus rectum of the ellipse and the parabola are same, then the eccentricity of the ellipse is