1

While I was digging source of StackID I saw this line which confused me,

while (db.Users.Any(u => u.ProviderId == provider))
                provider = Current.UniqueId();

There are lots of sources that say finally

Yes there is an odds of collision GUID but it's very.....very miniscule, ignore it

After I read those articles, I've never thought again about odds of collision, just ignored it until I saw the code above.

Should we check the collision, even if it's odds very miniscule, have you been checking?

Okan Kocyigit
  • 13,203
  • 18
  • 70
  • 129
  • 2
    Possible duplicate of [Are GUID collisions possible?](http://stackoverflow.com/questions/184869/are-guid-collisions-possible) – RB. Mar 06 '17 at 11:37
  • @RB., I don't think this is a duplicate, I just wonder why stackexchange developers did this? – Okan Kocyigit Apr 07 '17 at 07:23

0 Answers0