See kazinator's dead accurate, no-friend-required method here: https://news.ycombinator.com/item?id=13092902
It reminds me of collimating a telescope with a laser or your eye. You basically look down the optics of the telescope and you should be staring into your own eye, or if you use a laser the laser should be reflected by the mirrors exactly back into the emitter.
Even cheap mirrors from a dollar store are more than good enough for this, as long as they are glass. Most plate glass glass is made by floating melted glass on a bath of molten metal (which is heavier). The molten metal, if undisturbed, provides a perfectly level surface.
Just don't use a plastic mirror, or a cheap polished metal one, not to mention a magnifying mirror.
Even fairly noticeable distortion will not matter at the distances involved in this measurement. Let's say that your mirror is so horribly warped over the tiny ~65 mm pupillary distance that the pupil-to-ruler lines of sight are an entire degree away from being parallel. The measurement will then be off by about 1.7% of the distance from your pupils to the ruler. If you get your eyes within 15 mm of the ruler, the error is only about 0.25 mm; below what you can resolve with that ruler.
If the mirror is fair, but tilted, the effect is negligible because the lines of sight remain parallel. The measurement is diminished according to the cosine of the tilt angle. For a rather significant five degree tilt, it will be only around 0.25 mm short.