While the Algorithm(tm) is complete garbage, you could also probably add less Totally Random Persons(tm) to your "friends" list.
If Totally Random Persons(tm) are getting added automagically, we have bigger problems.
You feed the Algorithm(tm) garbage and it returns you garbage, and somehow it's all the Algorithm(tm)'s fault.