[Mono-bugs] [Bug 58792][Wis] New - GetHashCode for Single and Double isn't optimal

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 10:24:42 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien@ximian.com.


--- shadow/58792	2004-05-21 10:24:42.000000000 -0400
+++ shadow/58792.tmp.31936	2004-05-21 10:24:42.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 58792
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: GetHashCode for Single and Double isn't optimal
+Description of Problem:
+The hash code generated isn't uniformely distributed.
+Additional information:
+Current source code for both is:
+return (int) m_value;
+Where m_value is either a float or double. So 1.0, 1.1, 1.11 ... all get
+the same hash code.