A follow-up to Is there a greater chance to collide when comparing GUIDs created differently?.
I have something like this:
using( MD5 md5 = MD5.Create() ) {
var hash = md5.ComputeHash( foo );
var hashguid = new Guid( hash );
}
This guarantees the same foo
will cause a GUID collision, and allows filtering of duplicates of foo
.
Is there any concerns that hashguid
has a greater chance to collide with GUIDs generated with Guid.NewGuid()
(vs. two GUIDs generated with Guid.NewGuid()
)?