mung: better mug (inspired by @frodwith)
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
|% | |
:: +mung: 31-bit non-zero murmur3-32 based merkle hash | |
:: | |
++ mung | |
~/ %mung | |
=/ syd 0xcafe.babe | |
|= n=* | |
^- @ | |
?^ n | |
$(n (con $(n -.n) (lsh 0 31 $(n +.n)))) | |
=/ res (dis 0x7fff.ffff (muk syd (met 3 n) n)) | |
?. =(0 res) | |
res | |
$(syd +(syd)) | |
-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment