How to clarify that supervisor writing a reference is not related to me even though we have the same last name?
There is a very easy solution. Your supervisor can simply write something like


  To whom it may concern,
  
  It is a pleasure to write in recommendation of John Smith (no relation). John is...etc., etc.
  
  Sincerely,
  Professor Tom Smith