If the chord y = mx + 1 of the circle x2+y2=1 subtends an angle of measure 45∘ at the major segment of the circle then value of m is