in reply to Short hash algorithm
Alternately, you could use the 5-6 least significant characters of the digest.my $short = $digest % ($largest_int_wanted + 1);
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Short hash algorithm
by Corion (Patriarch) on Nov 18, 2004 at 07:39 UTC |