very simple hash function
Posted to
tcl
by evilotto at Tue Feb 28 01:45:39 GMT 2017
view raw
proc
hashit {s} {
set
i 0
foreach
{c} [
split
$s
""] {
set
i [
expr
{(33 *
$i
^ [
scan
$c
%c]) & 0xffffffff}]
}
format
%08x
$i
}
Recent Posts
tcl by oldlaptop
3 days ago
tcl by mookie
9 days ago
tcl by dandyn
16 days ago
tcl by Bradipo
16 days ago
tcl by Bradipo
16 days ago
tcl by oldlaptop
40 days ago
tcl by oldlaptop
41 days ago
tcl by mookie
45 days ago
tcl by mookie
46 days ago
tcl by georgtree
47 days ago
Submit
New paste
Documentation
From Jabber