Skip to content

Instantly share code, notes, and snippets.

@belisarius222
Last active Jul 3, 2020
Embed
What would you like to do?
mung: better mug (inspired by @frodwith)
|%
:: +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