djbhash (151B)
1 #!zsh 2 # vim: ft=zsh et sts=4 ts=4 sw=4 3 local h c 4 h=5381 5 for c in ${(s::)1}; do 6 h=$(( ( (h << 5) + h + #c ) % 0xffffffff )) 7 done 8 printf ${2:-%d} $h
![]() | mrrl-system-config-zshconfiguration for zsh on top of MRRL |
git clone https://ccx.te2000.cz/git/mrrl-system-config-zsh | |
Log | Files | Refs |