Maybe some of the $a values are repeated?
In reply to Re: Hash problem by ambrus in thread Hash problem by Gnat53