Thanks very much for the hint to FNV! It exactly solves my problem!

 

Von: Kornel Pal [mailto:[email protected]] 
Gesendet: Montag, 8. Dezember 2014 11:34
An: Hüning, Christian; [email protected]
Betreff: Re: [Mono-list] Differences in GetHashCode() of Type between .NET
and Mono

 

On 12/8/2014 9:21 AM, Hüning, Christian wrote:



I am using Mono alongside .NET in larger Deployments. Just recently I wanted
to use GetHashCode() of the type of an object to start a little algorithm on
each node, which needs to produce the same result when the same type’s
hashcode (or another equivalent information) is used. 


You might want to use 32-bit FNV-1a
(http://www.isthe.com/chongo/tech/comp/fnv/index.html) on
Type.AssemblyQualifiedName instead of GetHashCode() for this specific
purpose.

Kornel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to