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
1 days ago
tcl by oldlaptop
6 days ago
tcl by rhobart
18 days ago
tcl by rhobart
18 days ago
tcl by rhobart
19 days ago
tcl by Bradipo
19 days ago
tcl by rhobart
19 days ago
tcl by sssc
23 days ago
tcl by mookie
39 days ago
tcl by JMN
47 days ago
Submit
New paste
Documentation
From Jabber