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 mookie
10 days ago
tcl by cgm
12 days ago
tcl by egavilan
17 days ago
tcl by smlckz
18 days ago
tcl by Guest86
23 days ago
tcl by mookie
25 days ago
tcl by greycat
30 days ago
tcl by mookie
37 days ago
tcl by mookie
37 days ago
tcl by mookie
43 days ago
Submit
New paste
Documentation
From Jabber