Tuesday, February 10, 2009

Annoyed with SML/NJ library

- HashString.hashString "ds";
val it = 0wx6CF7 : word
- HashString.hashString "f1";
val it = 0wx6CF7 : word

Surly the default string hash should be better than this.
I'm using Tom Murphy's SHA1 implementation now.  Slower, but at least I don't have to worry about things like this.

No comments:

Post a Comment