Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to using hashes from Data.Hashable
The only thing one might worry about is more probable hash collisions (since hashable uses Int values for hashes, we only get 64 (or 32) bit hashes as opposed to the 128 bits we were getting with MD5. I have included a comment giving some rough ballpark estimates for the probability of collisions. I think in practice it is not a concern, except perhaps when building thousands of diagrams simultaneously on a 32-bit system.
- Loading branch information
Brent Yorgey
committed
Nov 28, 2013
1 parent
efe65a8
commit c93a65b
Showing
4 changed files
with
125 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters