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
junk by bcharder
34 days ago
tcl by egavilan
43 days ago
tcl by Stu
45 days ago
tcl by Stu
45 days ago
tcl by oldlaptop
78 days ago
tcl by oldlaptop
78 days ago
tcl by Molnija Bjornsson
84 days ago
tcl by Molnija Bjornsson
84 days ago
tcl by zmoment
84 days ago
tcl by zmoment
84 days ago
Submit
New paste
Documentation
From Jabber