Start by taking $i = 1 + $hash % ($p-1) instead of $i = $hash % $p ?
- tye
In reply to Re: RFC: Is there a solution to the flaw in my hash mechanism? (p-1?)
by tye
in thread RFC: Is there a solution to the flaw in my hash mechanism? (And are there any others?)
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |