mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
hoon: updates +muk to truncate seed and removes spurious assertion
This commit is contained in:
parent
ba51599e15
commit
e2a33eee8d
@ -1014,8 +1014,8 @@
|
||||
++ muk :: standard murmur3
|
||||
~% %muk ..muk ~
|
||||
=+ ~(. fe 5)
|
||||
|= {syd/@ len/@ key/@}
|
||||
?> &((lte (met 5 syd) 1) (lte (met 0 len) 31))
|
||||
|= [syd=@ len=@ key=@]
|
||||
=. syd (end 5 1 syd)
|
||||
=/ pad (sub len (met 3 key))
|
||||
=/ data (weld (rip 3 key) (reap pad 0))
|
||||
=/ nblocks (div len 4) :: intentionally off-by-one
|
||||
|
Loading…
Reference in New Issue
Block a user