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 iobates
16 days ago
tcl by iobates
16 days ago
tcl by iobates
16 days ago
tcl by FLORENTIS
19 days ago
tcl by Florentis
19 days ago
tcl by schelte
25 days ago
tcl by iobates
25 days ago
tcl by cgm
26 days ago
tcl by iobates
31 days ago
tcl by FM
35 days ago
Submit
New paste
Documentation
From Jabber